PRB: Background Color of @ ... SAY or @ ... GET is Wrong

Last reviewed: May 4, 1995
Article ID: Q129403
The information in this article applies to:
  • Microsoft FoxPro for Windows, version 2.6a

SYMPTOMS

An @ ... GET or @ ... SAY object that uses a COLOR clause is displayed with the wrong background color.

CAUSE

The color pair strings in the COLOR clause are enclosed by quotation marks.

RESOLUTION

Do not use quotation marks to enclose the color pairs.

Note: In FoxPro 2.6 for MS-DOS, the correct colors are displayed regardless of whether the color pair string is enclosed by quotation marks.

MORE INFORMATION

The following code should display the text with a blue foreground and a gray background:

   @1,1 SAY "test" COLOR "b+/w"
   x="text"
   @1,1 GET x COLOR ",b+/w"

The foreground color is displayed correctly but not the background color.

Without the quotation marks around the color pair string, both the foreground and the background colors are displayed correctly, as illustrated with the following code:

   @1,1 SAY "test" COLOR b+/w
   @1,1 GET x COLOR ,b+/w


Additional reference words: 2.60a FoxDos @...GET @..GET @...SAY @..SAY
KBCategory: kbprg kbdisplay kbprb
KBSubcategory: FxprgGeneral


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 4, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.