>Hi Tamar
>
>>>Thanks. I just want to know why RGBSCHEME(15...) does not return the same value when in a grid or page or when the form init()s?
>>
>>Possibly because it's an obsolete function, related to the coloring scheme used in FoxPro/DOS?
>
>I agree with you but this particular function in the help file does not say so. In any case I was looking for the form background color and trying to manipulate the colors in relation to the background so I do not have a color that is fixed but will adapt (hopefully looks good) if the form colors are different due to themes.
>
>Thanks.
>
>UPDATE: Does any current function give the same results?
If you want the form backcolor, just grab it: ThisForm.BackColor. Check this page on my website for more info:
http://www.tomorrowssolutionsllc.com/Materials/apps4everyone.htmlTamar
You can also use the GetSysColor API function to pull colors from the user's color set.