DIAdem Help

Method: IsArray for VBS

  • 更新时间2024-09-12
  • 阅读时长1分钟

Method: IsArray for VBS

Specifies whether an expression is an array.

vIsArray = Object.IsArray(expression)
ObjectVBS
Object with this method. You do not need to specify this object.
expressionVariant
Specifies any expression.
vIsArrayVariant
The method IsArray returns True if the expression is an array. Otherwise the method returns False.

The following example checks whether a variable is an array:

Dim MyArray
Call MsgBox(IsArray(MyArray))   ' Returns False
ReDim MyArray(3)
Call MsgBox(IsArray(MyArray))   ' Returns True
MyArray = Array("a","b","c")
Call MsgBox(IsArray(MyArray))   ' Returns True

See Also

Objects Overview

Related Topics

IsArray | IsDate | IsEmpty | IsNull | IsNumeric | IsObject | TypeName | VarType