>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.
It does work on all fields, but I want it to work only on one field when the user is editing it!
Thank you for trying to help me!
One can acquire everything in solitude but character.
Stendhal (1783-1842)