>Greetings my friends. :)
>
>One more of those tiny easy questions:
>
>?RGB(150,120,0) returns 30870. No problem.
>
>But, how can I get the RGB components from 30870?
>
>I want to do something like :
>
>x = Form.BackColor
>
>RedComponent = RED(x)
>GreenComponent = GREEN(x)
>BlueComponent = BLUE(x)
>
>Any help is welcome.
>
>TIA
>
>Alonso
In addition to other solutions just a note that there is an easy way to get the RGB values in the development environment.
Type the number (i.e 30870) into any Color... properties shown in the Property Sheet. The number will be immediately "disassembled" to RGB components.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison