Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do i convert getcolor() to RGB ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00331708
Message ID:
00331717
Vues:
24
>Hi All:
>
>I Just forgot how to convert Getcolor() returning value to RGB(xxx,xxx,xxx).
>
>I know that is something like xxx^xxx^xxx but i cant remember!
>
>Please Help.
>
>TIA

n = GETCOLOR()

alltrim(padl(mod(n,256),3,"0")) +','+ alltrim(padl(int(mod(n,65536)/256),3,"0")) +','+ alltrim(padl(int(n/65536),3,"0"))

I think....
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform