web 2.0

ASP/VBScript IsArray()

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

ASP/VBScript & IsArray()

.
.
.
Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (1 votes, average: 1.00 out of 10)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.