LibreOffice 25.8 帮助
通过测试,如果变量含有特殊的 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,否则将返回 False。
Null - 该值用于无有效内容的变量数据子类型。
Sub ExampleIsNull
Dim vVar As Variant
MsgBox IsNull(vVar)
End Sub