@ ... SAY ... COLOR R/W Does Not Display Correctly

Last reviewed: June 27, 1995
Article ID: Q95233
The information in this article applies to:
  • Microsoft FoxPro for MS-DOS, versions 2.5 and 2.5a
  • Microsoft FoxPro for Windows, version 2.5

The program example for the COLOR SCHEME <expN4> | COLOR <color pair list> clauses of the @ ... SAY command on page L3-26 of the "Language Reference" demonstrates three different ways to issue a SAY command with red letters on a white background. The program example appears as follows:

   @ 2, 2 SAY 'This is red on white' COLOR R/W
   @ 4, 2 SAY 'This is Color Scheme 16' COLOR SCHEME 16
   IF _WINDOWS   && FoxPro for Windows.
      @ 6, 2 SAY 'This is red on white' COLOR RGB(255,0,0,255,255,225)
   ENDIF

However, the first line of this example

   @ 2, 2 SAY 'This is red on white' COLOR R/W

does not produce true red on white as the other examples do. It actually produces red on gray. The following example works correctly; it adds the "+" to make the red bright and the "*" to intensify the white color:

   @ 2, 2 SAY 'This is red on white' COLOR R+/W*.

NOTE: In FoxPro for MS-DOS, before using this command you must first issue a "SET BLINK OFF" (without the quotation marks) command or have BLINK set to OFF in the CONFIG.FP or CONFIG.FPW file. Otherwise, the field will blinking on and off.


Additional reference words: FoxDos FoxWin 2.50 2.50a Redon White docerr
KBCategory: kbprg kbdisplay kbdocerr
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: June 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.