D
Don Lancaster
I want to programically generate some JS variable names in a loop.
The variables are NOT to be array values.
The variable names might be eq0, eq1, eq2....
Inside an ii indexed loop,
eval ("eq" + ii ) = some calculated stuff ;
generates a "cannot assign" error.
So does
"eq" + 11 = some calculated stuff ;
What is the correct way to programatically generate variable names?
--
Many thanks,
Don Lancaster voice phone: (928)428-4073
Synergetics 3860 West First Street Box 809 Thatcher, AZ 85552
rss: http://www.tinaja.com/whtnu.xml email: (e-mail address removed)
Please visit my GURU's LAIR web site at http://www.tinaja.com
The variables are NOT to be array values.
The variable names might be eq0, eq1, eq2....
Inside an ii indexed loop,
eval ("eq" + ii ) = some calculated stuff ;
generates a "cannot assign" error.
So does
"eq" + 11 = some calculated stuff ;
What is the correct way to programatically generate variable names?
--
Many thanks,
Don Lancaster voice phone: (928)428-4073
Synergetics 3860 West First Street Box 809 Thatcher, AZ 85552
rss: http://www.tinaja.com/whtnu.xml email: (e-mail address removed)
Please visit my GURU's LAIR web site at http://www.tinaja.com