Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change ForeColor of Grid TextBox
Message
 
To
08/11/1998 08:16:23
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00155556
Message ID:
00155565
Views:
16
>Is it possible to change the ForeColor of the contents of a textbox in a grid if the numeric value in that cell is a negative number?
>
>
>Thanks

John,

Check out the DynamicForecolor property of the column, you can put something like this in there;

IIF(EVALUATE(THIS.Controlsource)<0,RGB(255,0,0),RGB(0,0,0))

which will make negative numbers red and positive numbers black.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform