Hi all, I'm looking for some help on an Array. My application has a number of pages with date drop downs. I am providing the user with Month, Day, Year Drop downs. For the Month Dropdowns I want to use a two dimentional array. At the page level this works fine:
dim arrMonth(11,2)
arrMonth(0,0)="01"
arrMonth(0,1)="January"
arrMonth(1,0)="02"
arrMonth(1,1)="February"
...
for i = 0 to ubound(arrMonth)
response.write("<option value ="& arrMonth(i,0))
if arrMonth(i,0) = Session("MONTH" then response.write(" selected"
if IsEmpty(Session("PastCoEndtMo2") and i=12 then response.write(" selected"
response.write(">"&arrMonth(i,1)&"</option>"
Since I have a number of pages with Month Drop downs I would like to use an Application Level variable (ideally initaited in the global.asa) to store the data. I know the basic syntax for Application variable Application("var"="Stuff" or loading one dimentional arrays Application("arrMonth"=("01","02","03"... but are there any ways to do this with a two dimentional array?
Thanks in advance
dim arrMonth(11,2)
arrMonth(0,0)="01"
arrMonth(0,1)="January"
arrMonth(1,0)="02"
arrMonth(1,1)="February"
...
for i = 0 to ubound(arrMonth)
response.write("<option value ="& arrMonth(i,0))
if arrMonth(i,0) = Session("MONTH" then response.write(" selected"
if IsEmpty(Session("PastCoEndtMo2") and i=12 then response.write(" selected"
response.write(">"&arrMonth(i,1)&"</option>"
Since I have a number of pages with Month Drop downs I would like to use an Application Level variable (ideally initaited in the global.asa) to store the data. I know the basic syntax for Application variable Application("var"="Stuff" or loading one dimentional arrays Application("arrMonth"=("01","02","03"... but are there any ways to do this with a two dimentional array?
Thanks in advance