IsNull Function

バリアント型変数が、変数値にデータがないことを示す Null という特殊な値であるかを判定します。

Returns True when an object variable is passed that does not refer to a valid object, such as a newly created object that has not yet been assigned or an object assigned to the Nothing literal.

構文:


IsNull (Var)

戻り値:

Boolean

パラメーター:

Var: 判定する変数。この関数は、バリアント型変数の内容が Null 値である場合に True を返し、Null 値でない場合は False を返します。

Null - この値は、有効なコンテンツのないバリエーションデータサブタイプに使用します。

Error codes:

5 無効なプロシージャー呼び出しです

例:


Sub ExampleIsNull
Dim vVar As Variant
    MsgBox IsNull(vVar)
End Sub

ご支援をお願いします!