FOR x = 1 TO 17 ThisForm.txtAuxname[x].Enabled = .T. ENDFORBut I keep getting an error "TXTAUXNAME" not found. Why is it not adding the value of [x] on the end and using the intended object name?
FOR x = 1 TO 17 cCommand="ThisForm.txtAuxname"+ALLTRIM(STR(x))+".Enabled"+"=.T." &cCommand ENDFOR FOR x = 1 TO 17 cCommand="ThisForm.cboAuxname"+ALLTRIM(STR(x))+".Enabled"+"=.T." &cCommand ENDFORThis is probably a bad way of doing it, but I couldn't think of anything else. I need to refer to the object with the use of txtAuxname[x] in other parts of my app, but would like to do it the proper way.