dbgrid1-->datasource1-->clientdataset1-->DataSetProvider1-->query1query1.sql:='select * from table1';
对query1,clientdataset1,dbgrid1 分别建 立 了永久字段,和永久列对象,在
clientdataset1中建了一个Aggregate合计字段叫 fld1
在btn1的单击事件中label1.caption:=fld1.value;或edit1.text:=fld1.value;
都提示错误。Invalid variant type conversion。
fld1.expression:=sum(shl)//是数量为12
为什么
语法检查通过。在运行时点按钮出错。