Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting integer color code into HTML color code
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00535531
Message ID:
00535678
Vues:
17
Hi!

Dooh, I always though #XXXXXX is an integer number...

>>Hi!
>>
>>It is not needed to extract each color. strtran(transform(iColor,'@0'),'0x','#') is enough.
>>
>
There are different ways to do it (Got another answer somewhere in another thread), but it cannot be done in the way you suggested, due to the fact that the color value from GetColor() is in the "format" of BGR and not RGB. So you will have to swap Red part and Blue part.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform