Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RGB(r,g,b) == x
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00586236
Message ID:
00586626
Views:
16
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform