ASP IsArray Function
The IsArray function returns a Boolean value that indicates whether a specified variable is an array. If the variable is an array, it returns True, otherwise, it returns False.
Syntax
IsArray(variable)
Parameter Description :
variable - Required. Any variable
Example 1
dim a(5)
a(0)=”India”
a(1)=”USA”
a(2)=”Australia”
a(3)=”UK”
a(4)=”China”
Response.write(IsArray(a))
Output:
True
Example 2
dim a
a=”India”
Response.write(IsArray(a))
Output:
False
