Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting integer color code into HTML color code
Message
From
26/07/2001 01:17:45
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Converting integer color code into HTML color code
Miscellaneous
Thread ID:
00535531
Message ID:
00535531
Views:
47
I need to convert an integer color code into an HTML color code.

For example, if a user is prompted to select a color with getcolor(), and they choose red, the integer value returned is 255. In order to display the color red in HTML text, I need to either use 'font color="#FF0000"' or 'font color="red"'. How do I derive that "#FF0000" value from 255, or from any other valid color integer?

Thanks
Next
Reply
Map
View

Click here to load this message in the networking platform