Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
NumToRGB()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00185943
Message ID:
00185951
Vues:
19
Thanks!
>>How do you get a rgb string ("125,125,125") from a number.
>>ex:
>>myColor = RGB(100,100,0)
>>myRGBString = NumToRGB(mycolor)
>>How do I do this?
>>-John S. Huddleston
>
>John,
>
>not my code, but we do it like this:
>
>lnNew = GETCOLOR()
>RGB3 = INT( lnNew/(256*256))
>lnNew = lnNew - ( RGB3 * 256 * 256)
>RGB2 = INT( lnNew/256)
>lnNew = lnNew - ( RGB2 * 256)
>RGB1 = lnNew
>
>HTH
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform