VBScriptIsEmpty関数_
❮完全なVBScriptリファレンス
IsEmpty関数は、指定された変数が初期化されているかどうかを示すブール値を返します。変数が初期化されていない場合はtrueを返します。それ以外の場合は、Falseを返します。
構文
IsEmpty(expression)
Parameter | Description |
---|---|
expression | Required. An expression (most often a variable name) |
例
例
<%
Dim x
response.write(IsEmpty(x) & "<br />")
x=10
response.write(IsEmpty(x) & "<br />")
x=Empty
response.write(IsEmpty(x) & "<br />")
x=Null
response.write(IsEmpty(x))
%>
上記のコードの出力は次のようになります。
True
False
True
False
❮完全なVBScriptリファレンス