![]() |
|
|
ASP ArraysIn short arrays are variables that can store more than one value.
They are used to store a series of related information. Arrays in ASP/VBScript have a zero based index. This means that the first item in the array starts at 0. <%
Output: In the example code above we have defined values for each individual array element on separate lines. Another way to create an array especially for smaller arrays is to define the whole array in one line with each element separated by a comma. <% Again we could loop through the array and print out the values in each array element. <% Assigning an array size as in the example code below with a variable will result in an error. You have to use an integer unless it's a dynamic array. <%
In part 2 read about 'Array
Functions'
Site developed by Michael Wall - Web Design Belfast N.Ireland. |
|