IsEmpty Function

Tests if a Variant variable contains the Empty value. The Empty value indicates that the variable is not initialized.

Syntax:


IsEmpty (Var)

Return value:

Bool

پارامېتىر

Var: Any variable that you want to test. If the Variant contains the Empty value, the function returns True, otherwise the function returns False.

Error codes:

D'oh! You found a bug (text/sbasic/shared/00000003.xhp#err5 not found).

مىسال:


Sub ExampleIsEmpty
Dim sVar As Variant
    sVar = Empty
    Print IsEmpty(sVar) ' Returns True
End Sub

Please support us!