ClientDataSet1.AggregatesActive := True;
Aggregates 里面 :Active := True;
Expression := Sum(Qty * Price);//类似的东东
我用过多次,并没有发现无效地址错误呀
Aggregates 里面 :Active := True;
Expression := Sum(Qty * Price);//类似的东东
我用过多次,并没有发现无效地址错误呀
调试欢乐多
if ClientDataSet1.Aggregates[num].value<>null then
.......
因为如果没有记录,统计值为null,或者是表达式不正确。
哦棵