以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  请教文本框内容的空值判断  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=108869)

--  作者:有点辣
--  发布时间:2017/10/31 10:40:00
--  请教文本框内容的空值判断
要读取文本框的内容作为条件
对于文本框是空值时,是写: wbk.value = "" 还是写 wbk.value is nothing 
哪个更规范?

--  作者:有点甜
--  发布时间:2017/10/31 11:53:00
--  

If wbk.text = "" Then

 

If wbk.text = nothing Then

 

If wbk.text is nothing then

 

 


--  作者:有点甜
--  发布时间:2017/10/31 11:53:00
--  

都可以,一般是用 = nothing