glen_gillman@countrywide.com
In the command line you type as shown below:

SET COLOR TO W/B
messagebox(set("color"))

I expected it to return "w/b" and it returned "n/w*"

I clearly set the color to white/blue yet when issuing the
set("color") command it returns n/w* (WHITE). My guess is
that the default color scheme is n/w* so it is picking it
up from there. But this is also randomly affecting an
application of ours that has a mix of forms and class
libraries but a few screens using @ say, get, etc.

Any help in understanding this will be greatly appreciated.

Thanks

Re: Set(Color) doesn't work in VFP7 by Dan

Dan
Mon Dec 01 16:25:33 CST 2003

In vfp8, this returns exactly what I'd expect:

Set Color to w/b
?Set("Color")

That said, VFP draws its default colors from Windows settings, which are
controlled by the user. There's a VERY GOOD REASON the help for SET COLOR TO
says just "included for backwards compatibility". Any time you're messing
with those backward-compatibility commands, about the best you can expect is
that they won't throw errors. ;-)

Dan


"Glen Gillman" <glen_gillman@countrywide.com> wrote in message
news:022401c3b848$5acdaad0$a401280a@phx.gbl...
> glen_gillman@countrywide.com
> In the command line you type as shown below:
>
> SET COLOR TO W/B
> messagebox(set("color"))
>
> I expected it to return "w/b" and it returned "n/w*"
>
> I clearly set the color to white/blue yet when issuing the
> set("color") command it returns n/w* (WHITE). My guess is
> that the default color scheme is n/w* so it is picking it
> up from there. But this is also randomly affecting an
> application of ours that has a mix of forms and class
> libraries but a few screens using @ say, get, etc.
>
> Any help in understanding this will be greatly appreciated.
>
> Thanks