Foxtable(狐表)用户栏目专家坐堂 → ReadOnly问题


  共有2243人关注过本帖平板打印复制链接

主题:ReadOnly问题

帅哥哟,离线,有人找我吗?
douglas738888
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:五尾狐 帖子:1172 积分:8772 威望:0 精华:0 注册:2012/4/18 16:28:00
ReadOnly问题  发帖心情 Post By:2018/9/29 17:05:00 [只看该作者]

请教老师,下面代码在控件的enter,不起作用,_UserName与审批人员是一致的也不能编辑?

 

Dim tb As WinForm.TextBox = e.Form.Controls("TextBox2")
Dim r As Row = Tables("窗口3_Table1").Current
If _UserName = r("送审_审批人员") Then        如果这里是 if _UserName = "张三" then 就能编辑
    tb.ReadOnly = BooleanEnum.False '允许编辑
Else
    tb.ReadOnly = BooleanEnum.True '禁止编辑
End If


 回到顶部