Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid's column ForeColor vs DynamicForeColor
Message
From
21/07/2004 14:04:58
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Grid's column ForeColor vs DynamicForeColor
Miscellaneous
Thread ID:
00926662
Message ID:
00926662
Views:
62
Hi,

I have a grid where want to higlight in red all values shown in column 22 (which will hold the value for LF_ValLib), so in grid's init code I put:
This.Column22.ForeColor = Rgb (255, 0, 0)
but it doesn't work, i.e. all values are shown in dark. But if I put:
This.Column22.DynamicForeColor = "IIf (LF_ValLib <> 0, Rgb (255, 0, 0), Rgb (0, 0, 0))"
it works. Even if I put:
This.Column22.BackColor = Rgb (255, 0, 0)
it works. What am I doing wrong?

TIA,

Fernando

PS. VFP 8 SP1
Next
Reply
Map
View

Click here to load this message in the networking platform