.NET Framework 版本:4.0.30319.42000
Foxtable 版本:2022.1.30.2
错误所在事件:加载[系统_菜单]失败!
详细错误信息:
“%保存%”附近有语法错误。
Dim txt As String = e.Form.Controls("模糊搜索").Text
Dim tbl As Table = CurrentTable
If txt = "" Then
tbl.Filter = ""
Else
txt = "'%" & txt & "%'"
Dim f As String = "1=2"
For Each c As Col In tbl.cols
If c.IsString Then
f = f & " or " & c.name & "Like" & txt
Else If c.Isnumeric Then
f = f & " or cast(" & c.name & " as nvarchar) Like" & txt
Else If c.IsDate Then
f = f & " or cast(" & c.name & " as nvarchar) Like" & txt
End If
Next
tbl.DataTable.loadFilter = f
tbl.DataTable.load
End If