以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  无法操作?  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=30787)

--  作者:wqb1102
--  发布时间:2013/4/3 16:05:00
--  无法操作?
.NET Framework 版本:2.0.50727.5466
Foxtable 版本:2012.11.28.1
错误所在事件:
详细错误信息:
System.Data.EvaluateException: 无法在 System.String 和 System.Int32 上执行“=”操作。
   在 System.Data.BinaryNode.SetTypeMismatchError(Int32 op, Type left, Type right)
   在 System.Data.BinaryNode.BinaryCompare(Object vLeft, Object vRight, StorageType resultType, Int32 op, CompareInfo comparer)
   在 System.Data.BinaryNode.EvalBinaryOp(Int32 op, ExpressionNode left, ExpressionNode right, DataRow row, DataRowVersion version, Int32[] recordNos)
   在 System.Data.BinaryNode.Eval(DataRow row, DataRowVersion version)
   在 System.Data.DataExpression.Invoke(DataRow row, DataRowVersion version)
   在 System.Data.Index.AcceptRecord(Int32 record, IFilter filter)
   在 System.Data.Index.InitRecords(IFilter filter)
   在 System.Data.Index..ctor(DataTable table, Int32[] ndexDesc, IndexField[] indexFields, Comparison`1 comparison, DataViewRowState recordStates, IFilter rowFilter)
   在 System.Data.DataTable.GetIndex(IndexField[] indexDesc, DataViewRowState recordStates, IFilter rowFilter)
   在 System.Data.DataView.UpdateIndex(Boolean force, Boolean fireEvent)
   在 System.Data.DataView.UpdateIndex(Boolean force)
   在 System.Data.DataView.SetIndex2(String newSort, DataViewRowState newRowStates, IFilter newRowFilter, Boolean fireEvent)
   在 System.Data.DataView.SetIndex(String newSort, DataViewRowState newRowStates, IFilter newRowFilter)
   在 System.Data.DataView.set_RowFilter(String value)
   在 System.Data.DataView.System.ComponentModel.IBindingListView.set_Filter(String value)
   在 System.Windows.Forms.BindingSource.set_InnerListFilter(String value)
   在 System.Windows.Forms.BindingSource.set_Filter(String value)
   在 Foxtable.OOO0OOl111.set_Filter(String O10ll)

不知什么原因?

--  作者:wqb1102
--  发布时间:2013/4/3 16:40:00
--  
但我新增的代码并没有 System.String 和 System.Int32。
是在窗口改用模拟关联表后出现的提示。
[此贴子已经被作者于2013-4-3 16:43:26编辑过]

--  作者:XYT
--  发布时间:2013/4/3 17:33:00
--  
检查一下你关联的类型是不是一样的,提示System.String 是字符型, System.Int32是整数的,他们不能用=号