以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  [求助]PrepareEdit事件  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=179317)

--  作者:天一生水
--  发布时间:2022/8/18 9:05:00
--  [求助]PrepareEdit事件

老师好!

希望逻辑列[锁]勾选后,除[标注]、[锁]列以外,不可编辑。下面的代码所有列都不能编辑,是什么原因?

 

PrepareEdit事件
If e.Row("锁") = True Then
    If e.Col.Name <> "锁" Or e.Col.Name <> "标注" Then
        e.Cancel = True
    End If
End If

 

 


图片点击可在新窗口打开查看此主题相关图片如下:截屏图片.jpg
图片点击可在新窗口打开查看
[此贴子已经被作者于2022/8/18 9:05:42编辑过]

--  作者:有点蓝
--  发布时间:2022/8/18 9:07:00
--  
http://www.foxtable.com/webhelp/topics/0220.htm

If e.Col.Name <> "锁" andalso e.Col.Name <> "标注" Then