ASP 101 - Active Server Pages 101 - Web03
The Place ASP Developers Go!



Windows Technology Windows Technology
15 Seconds
4GuysFromRolla.com
ASP 101
ASP Wire
VB Forums
VB Wire
WinDrivers.com
internet.commerce internet.commerce
Partners & Affiliates
ASP 101 is an
internet.com site
ASP 101 is an internet.com site
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

ASP 101 News Flash ASP 101 News Flash





Script Output:

Static Array

The array has 4 elements. They are:

Index Value
0 Susan
1 Andy
2 Fred
3 Kelly

The array has 4 elements. They are:

Index Value
0 John
1 Susan
2 Fred
3 Kelly

Dynamic Array

The array has 2 elements. They are:

Index Value
0 15
1 20

The array has 4 elements. They are:

Index Value
0 15
1 20
2 25
3 30

Array Using the Array Function

The array has 3 elements. They are:

Index Value
0 red
1 green
2 blue

ASP HTML Download            FAQ

ASP.NET Version

Most variables that you deal with contain one value. Sometimes however it's useful to store more than one value. Arrays are one way to do this. Since I can't come up with a good simple definition I'll turn to Microsoft's definition from the VBScript documentation:

Array
A set of sequentially indexed elements having the same type of data. Each element of an array has a unique identifying index number. Changes made to one element of an array do not affect the other elements.

For the rest of the details check out the code. It's easier to show you this stuff than to try and explain it without an example to refer to.


Samples

Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers