VBScript IsArray function
May 13, 2021
VBScript
Table of contents
VBScript
IsArray
function
The VBScript IsArray function returns a Boolean value that indicates whether the variable is an array.
Complete VBScript reference manual
The IsArray function returns a Boolean value that indicates whether the specified variable is an array.
If the variable is an array, true is returned, otherwise False is returned.
Grammar
Parameters
parameter
|
describe
|
variable
|
Required.Any variable.
|
Instance 1
<script type="text/vbscript">
days=Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat")
document.write(IsArray(days))
</script>
The above example output results:
True
Try it out . . .
Instance 2
<script type="text/vbscript">
Dim a(5)
a(0)="Saturday"
a(1)="Sunday"
a(2)="Monday"
a(3)="Tuesday"
a(4)="Wednesday"
document.write(IsArray(a))
</script>
The above example output results:
True
Try it out . . .
Instance 3
<script type="text/vbscript">
a="Saturday"
document.write(IsArray(a))
</script>
The above example output results:
False
Try it out . . .
Complete VBScript reference manual