📄 1028.html
字号:
<html> <head> <title>IIF() 使用问题</title> </head> <BODY BACKGROUND="" BGCOLOR="white" TEXT="black" LINK="red" VLINK="#808080" ALINK=""> <center> <h1>IIF() 使用问题</h1> </center><HR><p>Posted by <a href="mailto:shien@wusnet.net.tw">小贤</a> on October 03, 1997 at 02:44:24:<p>我写一个函数要用以下几种程式码 , <br>有的会发生 错误 (93) " Null的使用不正确" <br>DataValue 由资料库抓出来的! 且未输入资料 (应该是 Null 吧) <br>Function NotNull(DataValue) As String<br>1 NotNull = IIf(DataValue "", DataValue, "")<br>2 NotNull = IIf(DataValue = "", "", DataValue)<br>End Ffunction<br>用 1 不会错误, 用 2 错误<p>Function NotNull(DataValue) As String<br>1 If DataValue = "" Then NotNull = ""<br> If DataValue "" Then NotNull = DataValue<p>2 If DataValue "" Then<br> NotNull = DataValue<br> Else<br> NotNull = ""<br> End If<p>3 If DataValue= "" Then<br> NotNull = DataValue<br> Else<br> NotNull = ""<br> End If<br>End Function<br>用 1 , 2 不会错误, 用 3 会错误 <br>请问这是什么原因呢?<br><p><a name="followups">Follow Ups:</a><br><ul><!--insert: 1028--><!--top: 1032--><li><a href="1032.html"><b>Re: IIF() 使用问题</b></a> 小吴 <i>23:12:54 10/03/97</i>(<!--responses: 1032-->2)<ul><!--insert: 1032--><!--top: 1034--><li><a href="1034.html"><b>Re: IIF() 使用问题</b></a> 小贤 <i>01:58:21 10/04/97</i>(<!--responses: 1034-->1)<ul><!--insert: 1034--><!--top: 1037--><li><a href="1037.html"><b>啊!我写错了,sorry!</b></a> 小吴 <i>17:56:06 10/05/97</i>(<!--responses: 1037-->0)<ul><!--insert: 1037--></ul><!--end: 1037--></ul><!--end: 1034--></ul><!--end: 1032--></ul><!--end: 1028--><br><HR><p></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -