Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert RGB INTO Hexa Value
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01240526
Message ID:
01240536
Views:
23
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform