我的数据库有一个金额字段,我想将这个字段的所有记录统计出来,为何我下面的语句出错了,烦请指教。
dbgrideh1.SumList.SumCollection.Items[5].SumValue; //出现了statement exceptcted,by expression of Type Currency found 的错误,
--
dbgrideh1.SumList.SumCollection.Items[5].SumValue; //出现了statement exceptcted,by expression of Type Currency found 的错误,
--
var c: Currency;
begin
c := dbgrideh1.SumList.SumCollection.Items[5].SumValue;
end;