IsEmpty Function

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

āļšāˇāļģāļš āļģāˇ“āļ­āˇ’āļē:


IsEmpty (Var)

āļ†āļ´āˇƒāˇ” āļŊāļļāˇāļ¯āˇ™āļą āļ…āļœāļē:

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:

5 Invalid procedure call

āļ‹āļ¯āˇāˇ„āļģāļĢāļē:


Sub ExampleIsEmpty
Dim sVar As Variant
    sVar = Empty
    IsDate(sDateVar) REM āļ¸āˇ”āļ¯āˇŠâ€āļģāļĢāļē āļšāˇ’āļģāˇ“āļ¸ True āļ†āļ´āˇƒāˇ” āļŊāļļāˇ āļ¯āˇ™āļēāˇ’
End Sub

Please support us!