Hello.
Hmmmm. You've tried to change backcolor of a method. This for sure won't work.
I have a couple of suggestions:
1. Use WriteExpression method:
FOR II = 1 TO ThisForm.ControlCount
IF "TXT" $ UPPER(ThisForm.Controls(II).Name)
ThisForm.Controls(II).Enabled = .T. && This works!
ThisForm.Controls(II).WriteExpression("BackColor","RGB(255,255,255)")
ENDIF
ENDFOR
This should work, but,
2.
FOR II=1 to ThisForm.ControlCount
If "TXT" $ UPPER(ThisForm.Controls(II).Name)
ThisForm.Controls(II).Enabled = .T.
ThisForm.Controls(II).BackColor=RGB(255,255,255)
ENDIF
ENDFOR
works better.
Grigore Dolghin
Class Software.