Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Convert RGB INTO Hexa Value
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01240526
Message ID:
01240536
Vues:
26
>Ok Naomi,
>
>This code seems to go..
>
> #DEFINE iColor_Verte  RGB(255,255,191)
>
>    WITH THIS
>      TEXT To  .cBackColorGrid NOSHOW TEXTMERGE PRETEXT 15
>    ICASE(v_AgendaPhar.lgest=.F.,RGB( 251,155,184 ),v_AgendaPhar.sinecessaire,RGB(191,191,255),
>    ICASE(nRec = 0,16777215,ICASE( v_AgendaPhar.nRec=1,iColor_Verte,RGB(234,244,255))))
>      ENDTEXT
>      #UNDEF iColor_Verte
>
>ThanK
>
>
>bernhart

You can have all colors which you use as some constants.

e.g.
RGB( 251,155,184 )
RGB(191,191,255)
RGB(234,244,255)

as define constants. It may give you slight speed increase.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform