Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Colour
Message
 
À
27/07/2006 04:20:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Re: Colour
Versions des environnements
Visual FoxPro:
VFP 8
Divers
Thread ID:
01140586
Message ID:
01140587
Vues:
14
>Hi,
>
>I need to print different fields on a foxpro report in different colours depending on the value in that field - How can I change the colour/backcolour of a field at runtime?
>
>Thanks for any help.
In VFP8 only one way:
Make a bunch of Fields with the same Expression, change color for each to desired value. In each Field put in Print when: MyField=ValueForThisColor. Adjust the size to be the same for each field and allign Left and Top Sides also to be the same.
I.e.:
Field Expression           COLOR    Print When                         Left      Top
-------------------------------------------------------------------------------------
1      MyTable.MyField     Red        MyTable.MyField < 0               10        10
2      MyTable.MyField     Green      BETWEEN(MyTable.MyField,0,100)    10        10
3      MyTable.MyField     Black      MyTable.MyField > 100             10        10
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform