以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 代码错误的意思? (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=53756) |
-- 作者:hqy168168 -- 发布时间:2014/7/14 22:32:00 -- 代码错误的意思? 我在表的PrepareEdit事件有代码: Case "实对象类别" If e.Row.IsNull("实资金范围") = True OrElse e.Row.IsNull("虚资金用途") = True e.Cancel = True Else Tables("资金发放").Cols("对象").ComboList = DataTables("资金来源").GetComboListString("适用对象","资金范围 = \'" & e.Row("实资金范围") & "\'" And "资金用途 = \'" & e.Row("虚资金用途") & "\'","_identify") End If 错误信息是: .NET Framework 版本:2.0.50727.3655 Foxtable 版本:2014.5.12.1 错误所在事件:表,资金发放,PrepareEdit 详细错误信息: Exception has been thrown by the target of an invocation. Conversion from string "资金范围 = \'项目资金\'" to type \'Long\' is not valid. Input string was not in a correct format. 怎么也没有弄出错误地方 |
-- 作者:有点甜 -- 发布时间:2014/7/14 22:38:00 -- Case "实对象类别" If e.Row.IsNull("实资金范围") = True OrElse e.Row.IsNull("虚资金用途") = True e.Cancel = True Else Tables("资金发放").Cols("对象").ComboList = DataTables("资金来源").GetComboListString("适用对象", "资金范围 = \'" & e.Row("实资金范围") & "\' And 资金用途 = \'" & e.Row("虚资金用途") & "\'", "_identify") End If |
-- 作者:hqy168168 -- 发布时间:2014/7/15 16:21:00 -- 确实解决了,谢谢 |