定义了全局变量 dim _tab as string
请问内部函数可以这样写吗
Dim dt As String = "_tab"
Dim dr As DataRow = DataTables("用户管理").SQLFind("name ='" & _username & "'")
If dr.IsNull("授权集合") = False Then
Dim nms() As String = dr("授权集合").Split(",")
For Each nm As String In nms
If nm Like dt Then '如果授权集合包括当前表名
Return True '返回True
End If
Next
End If