Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting HTML color to number
Message
De
05/01/1998 12:16:56
 
 
À
05/01/1998 11:24:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
00069534
Message ID:
00069556
Vues:
39
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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform