-1
你可以帮我解决我在导航BindingSource中的问题。Bindingsource中EOF的等价物是什么?
我想用的BindingSource
Do Until recordSet.EOF
if isnull(resordSet!FieldName)=true then
recordSet.delete
end if
recordset.movenext
loop
你可以帮我解决我在导航BindingSource中的问题。Bindingsource中EOF的等价物是什么?
我想用的BindingSource
Do Until recordSet.EOF
if isnull(resordSet!FieldName)=true then
recordSet.delete
end if
recordset.movenext
loop
这个VB6代码转换成vb.net您可以BindingSource.Clear
更换整个循环:
的清除方法去除基础列表 所有元素由List属性表示并将Count属性设置为零。
此方法引发ListChanged事件。
我不是清除呐的BindingSource我想是这样的:做,直到recordSet.EOF 如果ISNULL(!resordSet字段名)= true,那么 recordSet.delete 结束时,如果 recordset.movenext 循环转换此代码 – Dennis 2012-02-01 05:12:18
该循环清除记录集。如果该记录集绑定到一个控件(如您的问题所暗示),那么它们具有相同的效果。如果不是,我建议你让你的问题更清楚。 – 2012-02-01 05:13:52