Array Function for Defining Arrays

Array Function for Defining Arrays
If you're defining an array with set values - say the months of the year - you can use the Array function to set that up quickly and easily.

First, you define the array, and then using the Array function, you fill it up!

Dim MonthList

MonthList =Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")

With those two simple commands, you have filled up the entire array with values, which you can now loop through and do other operations with!

Asp Array Function List

Introduction to ASP Ebook

Download this ebook to get everything you need to know about learning ASP - from a step by step tutorial to function lists, sample code, common errors and solutions, and much more! 101 pages.




RSS
Editor's Picks Articles
Top Ten Articles
Previous Features
Site Map





Content copyright © 2023 by Lisa Shea. All rights reserved.
This content was written by Lisa Shea. If you wish to use this content in any manner, you need written permission. Contact Lisa Shea for details.