Rss & SiteMap
Foxtable(狐表) http://www.foxtable.com
Dim txt As String = e.Form.Controls("ComboBox9").Text
Dim tbl As Table = Tables("表a")
If txt = "" Then
tbl.filter = ""
Else
txt = "'*" & txt & "*'"
tbl.filter = " 编号 Like" & txt
End If
这个代码是用来查找的。我想要的结果是,只是光标移动到指定行。
Dim dr As DataRow
Dim txt As String = e.Form.Controls("ComboBox9").Text
dr = DataTables("表a").Find("[编号] = 'Text'")
If dr IsNot Nothing Then
Dim wz As Integer = Tables("表a").FindRow(dr)
If wz >= 0 Then
Tables("表a").Position = wz
End If
End If
帮忙看看,那里不对
Dim dr As DataRow
Dim txt As String = e.Form.Controls("ComboBox9").Text
dr = DataTables("表a").Find("[编号] = '" & txt & "'")
If dr IsNot Nothing Then
Dim wz As Integer = Tables("表a").FindRow(dr)
If wz >= 0 Then
Tables("表a").Position = wz
End If
End If