ZrGGy‖

XoSo2‖IsEmpty Function

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

st3Rw‖Syntax:


3gyjT‖IsEmpty (Var)

fGGNR‖Return value:

Boolean

BrRWw‖Parameters:

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

SEjHR‖Error codes:

5 Invalid procedure call

FXTmE‖Example:


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