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

Windows Technology Windows Technology
15 Seconds
ASP 101
ASP Wire
VB Forums
VB Wire
internet.commerce internet.commerce
Partners & Affiliates
ASP 101 is an site
ASP 101 is an site
Internet News
Small Business
Personal Technology

Corporate Info
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:

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.


Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback
The Network for Technology Professionals



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