数据表包含名为 Fld_primary 的列。此列包含 0.00 之类的值,它是 mysql 表中的双数据类型。我想将该数据表值存储在双变量中。当我转换为双数据类型时总是出错。
my code
-------
Dim ds5 As dataset1.DTSUMDataTable = TA5.GetData(users)
Dim dttot As Double
dttot = CType(ds5("fld_primary").ToString, Double)
错误
Conversion from string "fld_primary" to type 'Integer' is not valid.