Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert RGB INTO Hexa Value
Message
From
15/07/2007 10:31:44
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01240526
Message ID:
01240538
Views:
18
>>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
>>
>>
>I think you can use integer presentation instead.

The 0xhhhhhh notation IS an integer. It's just written differently in the source, in a more readable form.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform