我把一下代码放在 afteropenproject里,
For Each dc1 As DataCol In DataTables("表A").datacolsIf dc1.name Like "*费" Or dc1.name Like "*价格" Or dc1.name Like "*时间" Then
If DataTables("表A").DataRows(dc1.name) IsNot Nothing Then DataTables("表A").DataCols(dc1.name).setformat("0.00")End IfEnd IfNext
会提升报错“”
“从字符串"焊接_价格"到类型"Integer"的转换无效.”
而"焊接_价格" 明明是double类型,这种情况怎么修改?