Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert results of GETCOLOR() to RGB values
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00084415
Message ID:
00084653
Views:
49
>>>I am using the GETCOLOR() function to allow users to specify the color of bar chart columns. The return value is a number from 0 to 16777215 (black to white). Is there a function that can take this value and return the RGB combination for the color? An example is dark blue returns 16711680, but what I really want to know is the RGB combination of 0,0,255.
>>
>>You could also use the FOXTOOLS function RGBComp(). The syntax is:
>>
>>
>>* lncolor is the color number
>>STORE 0 TO lnred, lngreen, lnblue
>>= RGBComp(lncolor, @lnred, @lngreen, @lnblue
>>
>>
>>hth,
>
>Oops, forgot the trailing parenthesis.
>
>
>* lncolor is the color number
>STORE 0 TO lnred, lngreen, lnblue
>= RGBComp(lncolor, @lnred, @lngreen, @lnblue
>
Again! :0)
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform