Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing Text Colors
Message
From
01/08/1999 14:41:46
 
 
To
01/08/1999 14:12:52
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00248683
Message ID:
00248685
Views:
15
Hi Bob,

>With a text field on a form how can I have the forecolor set according to the value of the field, i.e. if gender=1 the text should appear in Red, if gender=2 text in blue etc

It sounds like you should be using a checkbox, combobox or option group instead of a textbox to me. Then on in the interactive change event you could put your code.

*INTERACXTIVE CHANGE METHOD
this.forecolor=iif(this.value=1, RGB(255,0,0), RGB(0,0,255))

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform