以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- XXXXX改成is not null,才能与空值比较吗? (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=106283) |
-- 作者:zhangjian222200 -- 发布时间:2017/9/6 8:55:00 -- XXXXX改成is not null,才能与空值比较吗? Dim ibh As String = e.cookies("ibh") Dim tix As String
Dim dr As DataRow dr = DataTables("会员资料").Find("会员编号 = \'" & ibh & "\'") If dr IsNot Nothing Then tix = dr("体型") end if If ibh <> "" AndAlso tix <> "" Then If ibh is not null AndAlso tix is not null Then \'上面这行,改成本行这样的is not null,才能与空值比较吗? end if [此贴子已经被作者于2017/9/6 9:54:10编辑过]
|
-- 作者:有点甜 -- 发布时间:2017/9/6 9:35:00 -- 改成这样
If ibh <> Nothing AndAlso tix <> Nothing Then |