返回首页

喜逢好友

我使用的过滤数据这样的代码:

 If fil1.TextLength > 0 Then

                ShenasnameBindingSource.Filter = String.Format("ID_sabt Like '" & fil1.Text) & "*' "

            Else

                ShenasnameBindingSource.Filter = String.Empty

            End If

本守则是确定对于"ID_sabt的"类型=文字。
但不是为了数类型错误讯息,无法执行'喜欢'System.Int32的和System.String的运作。

我该怎么办?

回答

评论会员: 时间:2
|