以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  锁定列的表达式  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=23246)

--  作者:SZDVYE
--  发布时间:2012/9/6 17:43:00
--  锁定列的表达式

在表属性PrepareEdit事件:

If e.Row("对账") = True AndAlso User.Group <> "行政部" Or e.Row("对账") = True AndAlso User.Group <> "总经理" Then
    e.Cancel = True
End If

 

 

这个表达式不能正常运算,请教如何更改?


--  作者:小猪鑫鑫
--  发布时间:2012/9/6 19:41:00
--  

If e.Row("对账") = True then

if User.Group <> "行政部" AndAlso User.Group <> "总经理" Then
e.Cancel = True
End If

End If