Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form template
Message
 
To
05/08/2000 10:36:16
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00401520
Message ID:
00401522
Views:
23
>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform