Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NumToRGB()
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00185943
Message ID:
00185967
Views:
22
>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

Hi John,

Foxtools has a function to convert this value for you. After you set the library, you can use:

= RGBComp(nRGBColor, @nRedVal, @nGreenVal, @nBlueVal)

nRBGColor is the value to convert, the nRedVal, etc. will contain the results, but must be passed by reference.

How are things in Chicago? Man, I could go for an Italian Beef.:-)

hth,
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform