Im doing a page in .asp and im having this problem … I have some variable constants
MENU_01="FICHEROS"
MENU_02="OPTIONS"
MENU_03="USERS"
etc … what I need to do its a cicle where I can print each variable value by refering it by string …
Dim i
For i=1 to CANTMENUS
Response.Write "<li>"& MENU_0 & i; & "</li>"
Next
Something like that (obviously that do not work) I know the variable name start in MENU_0 and I want dinamicly add the next value to the variable name (the “i” value)
Its this posible to do ??
thanks for all.
In fact I found a way to do this without a set or array! By using eval() func
MENUNUMBER its the iteration variable and the variables with the values I want are MENU_01 MENU_02 MENU_03 etc … and with eval(“MENU_01”) I get the value I need!
Thanks for all.