Welcome to my ASP Code Website

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