报表调用公共变量为啥值是“0”
IF thisform.text5.value={} or thisform.text6.value={} or thisform.text6.value<thisform.text5.valueMESSAGEBOX("日期错误,请重新输入!!!",40)
thisform.text5.setfocus
ELSE
if file( "123.dbf ")
erase 123.*
endif
select * from 空箱加固库 where 日期>=thisform.Text5.value AND 日期<=thisform.Text6.Value into table "C:\Documents and Settings\Administrator\桌面\统计程序\123"
ENDIF
use
use 123
INDEX on DTOC(日期) TAG riqi
GO TOP
count ALL for 车型="两用" TO liangyong
count ALL for 车型="专用" TO zhuanyong
use
在以上代码中,我把 liangyong zhuanyong 设置成了公共变量,但是在报表中调用数值却是“0”