以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  [求助]关于取消窗口表的右键菜单  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=128606)

--  作者:奶粉大王
--  发布时间:2018/12/11 16:07:00
--  [求助]关于取消窗口表的右键菜单
If e.Table.name Like *_Table* Then \'如果是窗口表
    e.Cancel = True
End If

这个加在项目属性的  BeforeShowContextMenu ? 提示编译错误 应为表达式
[此贴子已经被作者于2018/12/11 16:07:18编辑过]

--  作者:有点甜
--  发布时间:2018/12/11 16:52:00
--  
If e.Table.name Like "*_Table*" Then \'如果是窗口表
    e.Cancel = True
End If

--  作者:有点甜
--  发布时间:2018/12/11 16:52:00
--  
或者
 
If e.Table.form isNot Nothing Then \'如果是窗口表
    e.Cancel = True
End If