以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  [求助]如何判断窗口中所有文本框是否存在空值  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=143152)

--  作者:winwtj
--  发布时间:2019/11/15 10:26:00
--  [求助]如何判断窗口中所有文本框是否存在空值
一个窗口上有几个文本框,只要有一个空值就要报错,如何判断呢?
--  作者:有点蓝
--  发布时间:2019/11/15 10:35:00
--  
dim str() as string = {"控件1","控件2","控件3"}
for each c as string in str
if e.form.controls(c).text = "" then
msgbox("不能为空")
return
end if
next

--  作者:winwtj
--  发布时间:2019/11/15 10:51:00
--  
谢谢