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:
00535836
Views:
14
Vlad,

Yes it is see the highlighted text below:

>It is not needed to extract each color. strtran(transform(iColor,'@0'),'0x','#') is enough.
>
>>HTML color codes are stored RGB. In VFP the color code is stored RBG in the integer value returned by GetColor(). The easiest thoing to do is use RGBComp() to decompose the value:
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform