Scripts: Asp :: Asp arrays :: Library Article #16
Developer's Section
Creating a resizable multidimensional array in Classic ASP By: Erobo Team Member
|
||||||||
This tutorial teaches you how to create a multidimensional resizable array in ASP/VBscript.
In the following code snippet you will find out how to create a multidimensional resizable array.The first step is to declare the array using the number of fields per level or index that you want. For this example we will use 4 fields. Then we declare a variable to hold the current index on the array. This variable will be reused when we start to continuously resize it on our looping from the record set result. Finally, we show how to assign the values from the record set to the array. A method to show the existance of an item in the array is also included in code snippet 2.
Now see below for a method to query our multidimensional array:
Good luck!!. |
||||||||
|
||||||||
See other Scripts in Asp arrays |
Submit Your Scripts: |
System Message:
|
If you would like to have your ASP & ASP.NET scripts published in this section please fill out the form below: |