<1> IsArray function
Returns a Boolean value to indicate whether a variable is an array.
Syntax
IsArray (varname)
The varname parameter can be any variable.
Description
If the variable is an array, the IsArray function returns True; otherwise, the function returns False. When the variable contains an array, the IsArray function is very effective.
<2> IsDate function
Returns a Boolean value to indicate whether an expression can be converted to a date.
Syntax
IsDate (expression)
The expression parameter can be any date expression or string expression that can be recognized as a date or time.
Description
If the expression is a date or can be legally converted to a valid date, the IsDate function returns True; otherwise, the function returns False. In Microsoft Windows, the valid date range is from January 1, 100 AD to December 31, 9999 AD. Valid date ranges vary with the operating system.
<3> IsEmpty function
Return a Boolean value to indicate whether the variable has been initialized.
Syntax
IsEmpty (expression)
The expression parameter can be any expression. However, because IsEmpty is used to determine whether a variable has been initialized, the expression parameter is often a variable name.
Description
If the variable is not initialized or explicitly set to Empty, the IsEmpty function returns True; otherwise, the function returns False. If expression contains more than one variable, False is always returned.
<4> IsNull function
Returns a Boolean value indicating whether the expression does not contain any valid data (Null ).
Syntax
IsNull (expression)
The expression parameter can be any expression.
Description
If expression is Null, IsNull returns True, that is, the expression does not contain valid data. Otherwise, IsNull returns False. If expression is composed of multiple variables, Null in any component variable of the expression returns True for the entire expression.
Null indicates that the variable does not contain valid data. Null is different from Empty, which indicates that the variable is not initialized. Null is also different from a zero-length string (""). A zero-length string usually refers to an empty string.
The IsNull function can be used to determine whether the expression contains a Null value. In some cases, you want to set the expression value to True, for example, IfVar = Null and IfVar <> Null, but they are always False. This is because any expression containing Null itself is Null, so the result of the expression is False.
<5> IsNumeric function
Returns a Boolean value to indicate whether the expression value is a number.
Syntax
IsNumeric (expression)
The expression parameter can be any expression.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service