以文本方式查看主题

-  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=105123)

--  作者:puresky
--  发布时间:2017/8/11 19:40:00
--  关于控件为空,代码怎么写?
请教:窗口中如果某控件值为空,那么另外一个控件就不能录入,如何写?
--  作者:有点蓝
--  发布时间:2017/8/11 21:06:00
--  
另外一个控件enter事件

If e.form.controls("某控件").text = "" Then
    e.sender.ReadOnly = BooleanEnum.true\'禁止编辑
Else
    e.sender.ReadOnly = BooleanEnum.false\'允许编辑
End If