参数声明在编译时报错的问题
有一个传参数的表单,参数有好几个,基中有几个为数据的,运行时没问题,但在编译为.EXE文件时报错,信息为:
表单d:\mrp\form\searchall.scx包含下列错误:
未知的 CFIELDS - 未定义
未知的 EFIELDS - 未定义
未知的 FIELDTYPES - 未定义
此表单的INIT事件的代码如下:
parameter nsql,mainfield,efields,cfields,fieldtypes,nheaders,ngwidths,nleft,ntop
create cursor fieldtable (tcfield c(20),tefield c(20),tfieldtype c(1))
for i=1 to alen(cfields)
insert into fieldtable (tcfield,tefield,tfieldtype) values (cfields(i),efields(i),fieldtypes(i))
endfor
this.bcfields.rowsourcetype=2
this.bcfields.rowsource="fieldtable"
this.bcfields.displayvalue=cfields(1)
...
请问,怎么解决此问题?谢谢!