adsense


Sunday, 8 November 2015

VB SCRIPT ISARRAY FUNCTION PAGE 61

COMPUTER LANGUAGES HTML,C,C++.JAVA,.NET AND MULTIMEDIA basics and programs click home button




VB SCRIPT ISARRAY FUNCTION





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 


No comments: