Z ztp2000 Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-08 #1 DataSet中的数据是动态的,不知道哪一列的数据是否是数字! 如何判断一个DataSet中的某一列的数据是否为可以进行求和(sum)运算。
Y ysai Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-08 #2 if DataType in [ftSmallint, ftInteger, ftWord,ftFloat, ftCurrency] then
Z ZRWeng Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-08 #3 If ADOQuery1.FieldByName('字段名').DataType in [ftInteger,ftFloat....] then //求和
Y ysai Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-08 #5 用VarType判断字段的value,看是不是 vbInteger vbLong vbSingle vbDouble vbCurrency 之一
W wserfer Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-16 #6 對啊,比如列五是DOUBLE,那麼如何SUM(列五)呢?
G gwybkqs Unregistered / Unconfirmed GUEST, unregistred user! 2003-05-09 #7 if DataType in [ftSmallint, ftInteger, ftWord,ftFloat, ftCurrency] then begin end