Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
NumToRGB()
Message
De
10/02/1999 10:11:51
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00185943
Message ID:
00185954
Vues:
13
>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
this.backcolor = Color2RGB(0x00FFFF) && Yellow
* This.backcolor = "rgb(255,255,0)" && Yields to
function Color2RGB
lparameters nColor
return "RGB("+ ;
	str(nColor%256,3)+","+;
	str(floor(nColor%256^2 / 256),3)+","+;
	str(floor(nColor / 256^2),3)+")"
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform