以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.net/bbs/index.asp)
--  专家坐堂  (http://foxtable.net/bbs/list.asp?boardid=2)
----  动态加载初始不加载表  (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=122291)

--  作者:lfz123
--  发布时间:2018/7/22 15:11:00
--  动态加载初始不加载表
教程里面的动态加载:
Select Case e.DataTableName
    
Case "表A" 
        e.Cancel = (e.User.Name = 
"张三")
    
Case "表B" 
        e.Cancel = (e.User.Name = 
"李四"
    
Case "表C" 
        e.Cancel = (e.User.Name = 
"王五")
End
 
Select

我:李四不加载表B的同时也不加载表A 实现不了

Select Case e.DataTableName
    
Case "表A" 
        e.Cancel = (e.User.Name = 
"张三")
    
Case "表B","表A" 
        e.Cancel = (e.User.Name = 
"李四"
    
Case "表C" 
        e.Cancel = (e.User.Name = 
"王五")
End
 
Select


--  作者:有点甜
--  发布时间:2018/7/22 15:39:00
--  


Select Case e.DataTableName
    Case "表A"
        Select Case e.user.name
            Case "张三", "李四"
                e.Cancel = True
            Case Else
        End Select
    Case "表B"
        Select Case e.user.name
            Case "李四"
                e.Cancel = True
            Case Else
        End Select
    Case "表C"
        e.Cancel = (e.User.Name = "王五")
End Select