gns100
11-04-2003, 01:39 PM
In a JS function I have
Text_1 = "ONE"
Text_2 = "TWO"
Text_3 = "THREE"
Using something like the following I want to display the text.
for(i=1; i<4; i++) {
text_id = "Text_" + i;
}
What I get is the strings in text_id ..... Text_1, Text_2, Text_3.
What I want is ONE, TWO, THREE.
I reality I have i = 100, so I need to do it this way.
Thanks for any help.
Text_1 = "ONE"
Text_2 = "TWO"
Text_3 = "THREE"
Using something like the following I want to display the text.
for(i=1; i<4; i++) {
text_id = "Text_" + i;
}
What I get is the strings in text_id ..... Text_1, Text_2, Text_3.
What I want is ONE, TWO, THREE.
I reality I have i = 100, so I need to do it this way.
Thanks for any help.