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:
01240532
Views:
21
Naomi,

I have this code
 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,RGB(255,255,191),RGB(234,244,255))))
      ENDTEXT
AND i think that this code run faster..????
 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,0xC0C0C0,0xFFFFFF)))
      ENDTEXT
I want dus a foncton That convert RGB(255,255,191 INTO Something such 0xC0C0C0

bernhart


>>Hi Naomi,
>>
>>Thank for your answer But I' m Sorry , i don't understand....:)
>>
>>I Have a RGB() Value and I want something such 0xC0C0C0
>>
>>I hoop that it is faster...??
>>
>>bernhart
>>
>
>What exactly is the purpose? Where do you need to use HEX re-presentation of the color?
>
>RIGHT(TRANSFORM(lnColor, '@0'),6) gives you what you want. How many cases did you test?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform