水晶報表中判斷語句問題
- 作者:xiaoxiao
- 发表时间:2020-12-23 11:01
- 来源:未知
stringVar sTmp := '';
if ({QR_CUST_LABEL_PP/.B_LOW_FLOW}= 'TRUE' ) and ({QR_CUST_LABEL_PP/.RESIN} = '5441' ) then sTmp := ' low flow';
if ({QR_CUST_LABEL_PP/.B_TG150} = 'TRUE' ) and (Mid({QR_CUST_LABEL_PP/.PART_NO},2,1) = '5') then sTmp := 'TG150';
sTmp;
問題:若第二條件符合;但是在資料庫里QR_CUST_LABEL_PP/.B_LOW_FLOW為NULL值時;此語句無法執行,返回還是為空!很是奇怪,我只好把NULL修改成FALSE就OK;暫時記下,小次再想辦法處理...