Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Color codes
Message
From
27/03/2020 15:22:51
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01673838
Message ID:
01673853
Views:
70
Likes (3)
>getColor() functions returns a number indicating the selected color.... Is there a way to convert this number in a Rgb() format ?
>I have to show some data in a html page and each wro ina list must have a specific color stored in a table, but in this table the color is a single number that in html is not recognized.

Another one-liner for your bag, Michele (same RGB() as Martina's):
? LEFT(STRCONV(BINTOC(RGB(255,1,2), "4R"), 15), 6)
----------------------------------
António Tavares Lopes
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform