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

Click here to load this message in the networking platform