eseabrook2008
Technical User
Basically, I'm in a For loop and I need to assign a value to a variable depending on the value of the counter. Variable names are: glbnumconvict1, glbnumconvict2, glbnumconvict3, and glbnumconvict4. I opted to declare the variables before hand so they exist when I try to assign the value but how do I do the assignment:
for (x=1, x<5, x++) {
if (getField("txtsomefield"+x).value == "") {
"glbnumconvict"+x = somepassednumber}}
Does this make sense? If I try the above, i get an invalid left-hand assignment on the glbnumconvict line.
for (x=1, x<5, x++) {
if (getField("txtsomefield"+x).value == "") {
"glbnumconvict"+x = somepassednumber}}
Does this make sense? If I try the above, i get an invalid left-hand assignment on the glbnumconvict line.