Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I set field's color based on its value?
Message
De
18/04/1997 23:58:00
 
 
À
18/04/1997 01:48:21
Chrita Lee
ProMOS Technology Inc.
Hsinchu, Taiwan
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00028848
Message ID:
00028952
Vues:
42
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform