>Hi to all VFP users
>
>Can anybody tell me how can I return the RGB values (say 230,40,140) from a selected colour within VFP.
>I can get the value VFP addigns to it but that is of no use. I need the RGB value.
>
>Thanks
>
>Willie
Ignore my previous messages,
the real answer is
RGB = RGB(230,40,140)
this means RGB = 9185510
To decipher this
Blue = FLOOR(RGB/65536) = 140
Green = FLOOR((RGB-Blue*65536)/256) = 40
Red = RGB - Blue*65536 - Green*256 = 230
Sorry about previous replys
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only