stanmurphy
Technical User
- Oct 14, 2000
- 89
Hello All,
I am using the code below to clear a number of text boxes on my form. I tried the eval because I heard that a &variable will only be evaluated once in a loop. The eval seems to be working the same way. Does anyone know of another way to accomplish this task, that is, performing variable substitution within a loop?
FOR boxcount = 2 TO 7 && clear the names boxes on Appointment Form
eval("thisform.text"+(ALLTRIM(STR(boxcount)))+".value = ' '"
ENDFOR
I am using the code below to clear a number of text boxes on my form. I tried the eval because I heard that a &variable will only be evaluated once in a loop. The eval seems to be working the same way. Does anyone know of another way to accomplish this task, that is, performing variable substitution within a loop?
FOR boxcount = 2 TO 7 && clear the names boxes on Appointment Form
eval("thisform.text"+(ALLTRIM(STR(boxcount)))+".value = ' '"
ENDFOR