VBScript IsArray Function
Complete VBScript Reference
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
| Parameter |
Description |
| variable |
Required. Any variable |
Examples
Example 1
<script type="text/vbscript">
days=Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat")
document.write(IsArray(days))
</script>
The output of the code above will be:
True
Try it yourself »
Example 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 output of the code above will be:
True
Try it yourself »
Example 3
<script type="text/vbscript">
a="Saturday"
document.write(IsArray(a))
</script>
The output of the code above will be:
False
Try it yourself »
Complete VBScript Reference
Thank You For Helping Us!
Your message has been sent to W3Schools.
Close [X]