Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NumToRGB()
Message
From
10/02/1999 10:11:51
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00185943
Message ID:
00185954
Views:
12
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform