VBScript IsArray Function
The IsArray Function returns a Boolean value that indicates whether or NOT the specified input variable is an array variable.
Syntax
IsArray(variablename)
Example
<!DOCTYPE html>
<html>
<body>
<script language = "vbscript" type = "text/vbscript">
a = array("Red","Blue","Yellow")
b = "12345"
Document.write("The IsArray result 1 : " & IsArray(a) & "<br />")
Document.write("The IsArray result 2 : " & IsArray(b) & "<br />")
</script>
</body>
</html>
When the above code is saved as .HTML and executed in Internet Explorer, it produces the following result−
The IsArray result 1 : True The IsArray result 2 : False
vbscript_arrays.htm
Advertisements