Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I set field's color based on its value?
Message
From
18/04/1997 23:58:00
 
 
To
18/04/1997 01:48:21
Chrita Lee
ProMOS Technology Inc.
Hsinchu, Taiwan
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00028848
Message ID:
00028952
Views:
44
>In report designer:
>
>When I drag a field from the DataEnvironment, I can set its ForeColor and BackColor, but is it possible to set this in run-time based on the field's value? I've tried using replace .FRX itself, but the PenRed, PenGreen and PenBlue field in .FRX are all constants, so I can't replace them with variable...
>
>Any idea?
>
>Chris Lee
I have use the following approach:
add code with a do case
case this value set color to red
case this other value set color to yellow
at run time you can't use 192,192,192
either use the color's value or set value = to rgb(255,255,0) for example
the trick is to find a good spot for the code
good luck
Art Castro
Previous
Reply
Map
View

Click here to load this message in the networking platform