|
 |
asp_databases thread: Array in ASP
Message #1 by oneil_brown@h... on Wed, 16 Jan 2002 16:04:32
|
|
Does ASP support array'sif so how are they declared and used. IF not what
can I do to simulate this concept.
Thank
O'Neil
Message #2 by "Kim Iwan Hansen" <kimiwan@k...> on Wed, 16 Jan 2002 17:19:03 +0100
|
|
Sure you can use arrays in ASP - it's all VBScript or JScript.
Download the VBS documentation:
http://activedeveloper.dk/download/files/vbsdoc.exe
Download the JScript documentation:
http://activedeveloper.dk/download/files/jsdoc.exe
Examples of arrays in VBScript:
http://www.google.com/search?hl=en&q=arrays+in+vbscript
-Kim
> -----Original Message-----
> From: oneil_brown@h... [mailto:oneil_brown@h...]
> Sent: 16. januar 2002 16:05
> To: ASP Databases
> Subject: [asp_databases] Array in ASP
>
>
> Does ASP support array'sif so how are they declared and used. IF
> not what
> can I do to simulate this concept.
>
> Thank
>
> O'Neil
> $subst('Email.Unsub').
>
Message #3 by "Drew, Ron" <RDrew@B...> on Wed, 16 Jan 2002 12:48:25 -0500
|
|
Yes
Dim myArray() 'Is for when you do not know the number of elements
(dynamic)
Dim myArray(5) 'There will only be 6 elements...remember base 0
myArray(0) =3D "Hi "
myArray(1) =3D "there"
myArray(2) =3D myArray(0) + myArray(1)
Response.Write myArray(2)
-----Original Message-----
From: oneil_brown@h... [mailto:oneil_brown@h...]
Sent: Wednesday, January 16, 2002 11:05 AM
To: ASP Databases
Subject: [asp_databases] Array in ASP
Does ASP support array'sif so how are they declared and used. IF not
what
can I do to simulate this concept.
Thank
O'Neil
$subst('Email.Unsub').
|
|
 |