Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting HTML color to number
Message
From
05/01/1998 12:16:56
 
 
To
05/01/1998 11:24:40
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00069534
Message ID:
00069556
Views:
34
Hello Michael!

I don't understand what you need, but Is it what you need?

LOCAL mcolor
*Fox color is BBGGRR, HTML is RRGGBB
m.mcolor = SUBSTR(TRANSFORM(thisform.backcolor,"@0"),5)
m.mcolor = SUBSTR(m.mcolor,5,2) + SUBSTR(m.mcolor,3,2) + LEFT(m.mcolor,2)
\>>

(cut from FOXISAPI example shipped with VFP)

BB

>One of my control used in a Web browser is having some color parameters. However, as oppose to standard HTML where we can specify CCCCCC as a color, for example, we need to specify something like -2147483643. Can someone tell what is the formula to convert something like that to its number equivalent?
>
>We have something like that in Visual FoxPro I believe for some properties. Is this the same that applies here?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform