Name
IsEmpty Function
Syntax
IsEmpty(varname
)
-
varname
Use: Required
Datatype: Variant
A numeric or string expression.
Return Value
Boolean (True
or False
).
Description
Determines if the variable has been initialized by having an initial
value (other than Empty
) assigned to it.
Rules at a Glance
If the variant passed to
IsEmpty
has been initialized,True
is returned; otherwise,IsEmpty
returnsFalse
.Although
IsEmpty
can take an expression as the value ofvarname
, it always returnsFalse
if more than one variable is used in the expression.IsEmpty
is therefore most commonly used with single variables.
Get VBScript in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.