Expression is not valid问题,求高手指教,在线等
错误一:
string start_company,end_company //设默认值
start_company='0';
end_company='9999'
dw_post_settle_account.retrieve(v_start_date,v_flag,dw_2.getitemstring(1,"retail_category_id"))
dw_post_settle_account.setfilter("")
dw_post_settle_account.filter()
if rb_12.checked then //如rb_12checked则将使用者输入的值赋给这两个变量
start_company=dw_11.getitemstring(1,"company_id")
end_company=dw_11.getitemstring(1,"company_id")
end if
dw_post_settle_account.setfilter("(fbks>="+start_company+")"+" and (fbks<="+end_company+")")
dw_post_settle_account.filter()
错误二:
dw_post_settle_account.retrieve(v_start_date,v_flag,dw_2.getitemstring(1,"retail_category_id"))
dw_post_settle_account.setfilter("")
dw_post_settle_account.filter()
if rb_12.checked then
fbks=dw_11.getitemstring(1,"company_id")
dw_post_settle_account.setfilter("fbks='"+fbks+"'")
dw_post_settle_account.filter()
end if
这两种写法,执行时均报“Expression is not valid”,求指教