L
lsyhql
Unregistered / Unconfirmed
GUEST, unregistred user!
动态地设置dbgrid中的字段,我是这样编程的:
query1.close;query1.sql.clear;query1.sql.add(s);query1.open;
dbgrid1.datasource:=datasource1;
dbgrid1.fields[3].Fieldname:='tdate';
dbgrid1.fields[4].Fieldname:='jcjs';
在执行时,显示如下警告信息,应如何解决??
acess violation at address 0045c941 in module 'jincuku.exe',read of address fffffff
query1.close;query1.sql.clear;query1.sql.add(s);query1.open;
dbgrid1.datasource:=datasource1;
dbgrid1.fields[3].Fieldname:='tdate';
dbgrid1.fields[4].Fieldname:='jcjs';
在执行时,显示如下警告信息,应如何解决??
acess violation at address 0045c941 in module 'jincuku.exe',read of address fffffff