IsEmpty

 

IsEmpty(variant )

 

Returns a value that indicates if a variant parameter has been initialized.

 

 

Related Topics:  IsDate, IsNull, IsNumeric, VarType

 

Example:

' This sample explores the concept of an empty variant

 

Sub Main

    Dim x       ' Empty

    x = 5       ' Not Empty - Long

    x = Empty   ' Empty

    y = x       ' Both Empty

    MsgBox “x” & " IsEmpty: " & IsEmpty(x)

End Sub