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

ID: Q95233

The information in this article applies to:

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

Last Reviewed: June 27, 1995