Latest web development tutorials

VBScript IsArray function

VBScript Reference Complete VBScript Reference

IsArray function returns a variable indicating whether the specified Boolean value array. If the variable is an array, it returns True, otherwise False.

grammar

IsArray(variable)

参数 描述
variable 必需。任何变量。

Examples

Example 1

<script type="text/vbscript">

days=Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat")
document.write(IsArray(days))

</script>

Examples of the above output:

True

try it"

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>

Examples of the above output:

True

try it"

Example 3

<script type="text/vbscript">

a="Saturday"
document.write(IsArray(a))

</script>

Examples of the above output:

False

try it"

VBScript Reference Complete VBScript Reference