以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 窗口中的Table (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=67546) |
|
-- 作者:zhangxl1964 -- 发布时间:2015/4/25 22:21:00 -- 窗口中的Table 老师:你好! 在窗口中建有一个副本的Tables("窗口1_Table1"),表中有许多列,我需要对其中一列允许编辑,其他列不允许编辑,有何简便的方法设置?
|
|
-- 作者:黄训良 -- 发布时间:2015/4/25 23:12:00 -- Tables("窗口_Table1").AllowEdit = False Tables("窗口_Table1").Cols("列名").AllowEdit = True |
|
-- 作者:zhangxl1964 -- 发布时间:2015/4/26 7:42:00 --
|
|
-- 作者:有点酸 -- 发布时间:2015/4/26 8:14:00 -- 这个不能用锁定表或列实现,最好直接编码,参考: http://www.foxtable.com/help/topics/0605.htm
代码很简单:
if e.col.name <> "可以编辑的列" then e.Cancel = true end if
|