IsArray Function

Description

Returns a value indicating whether a variable is an array.

Syntax

IsArray(varname)

The varname named argument can be any variable.

Remarks

IsArray returns True if the variable is an array; otherwise, it returns False.

See Also

Array Function, IsDate Function, IsEmpty Function, IsError Function, IsMissing Function, IsNull Function, IsNumeric Function, IsObject Function, TypeName Function, Variant Data Type, VarType Function.

Example

This example uses the IsArray function to check if a variable is an array.


Dim MyArray(1 To 5) As Integer    ' Declare array variable.
YourArray = Array(1, 2, 3)    ' Use Array function.
MyCheck = IsArray(MyArray)    ' Returns True.
MyCheck = IsArray(YourArray)    ' Returns True.