IsEmpty Function


IsEmpty( variant )

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

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


Related Topic:

IsDate

IsNull

IsNumeric Function

VarType