Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting integer color code into HTML color code
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00535531
Message ID:
00535678
Views:
19
Hi!

Dooh, I always though #XXXXXX is an integer number...

>>Hi!
>>
>>It is not needed to extract each color. strtran(transform(iColor,'@0'),'0x','#') is enough.
>>
>
There are different ways to do it (Got another answer somewhere in another thread), but it cannot be done in the way you suggested, due to the fact that the color value from GetColor() is in the "format" of BGR and not RGB. So you will have to swap Red part and Blue part.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform