ASP/VBScript IsArray() Returns a Boolean value indicating whether a variable is an array.
ShotDev Focus:
- Using Asp and IsArray() function.
Example
asp_isarray.asp
<% Option Explicit %> <html> <head> <title>ShotDev.Com Tutorial</title> </head> <body> <% Dim strVar1(3),strVar2 strVar1(0) = 1 strVar1(1) = 2 strVar1(2) = 3 strVar1(3) = 4 strVar2 = "ShotDev.Com" Response.write "<br>strVar1 = " & IsArray(strVar1) Response.write "<br>strVar2 = " & IsArray(strVar2) %> </body> </html>
Create a asp file and save to path root-path/myasp/
Run
http://localhost/myasp/asp_isarray.asp
Screenshot