PRB: BROWSE NOCLEAR Window Color Not Changed by @ ... FILL

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

SYMPTOMS

The @ ... FILL command does not change the color of the text in a window created with the BROWSE NOCLEAR command.

RESOLUTION

Because the image of the Browse window is not transferred to the desktop until the window is closed with the USE command, the USE command must be issued before the @ ... FILL command.

MORE INFORMATION

The documentation for the @ ... FILL command states that it changes the color of the output on the screen. However, in the incorrect code example below, using FILL after a BROWSE NOCLEAR command does not change the color of the text.

   CLEAR
   USE FILL
   DEFINE WINDOW fill FROM 5,5 TO 20,40
   BROWSE WINDOW fill NOCLEAR NOWAIT        * BROWSE NOCLEAR *
   @ 5,5 FILL TO 15,35 COLOR r/gr+          * @ ... FILL *
   stop=inkey(0)
   USE                                      * USE *
   DEACTIVATE WINDOW fill
   CLEAR

Note that the USE command is not issued until two statements after the FILL command. To correct this example, issue the USE command between the BROWSE NOCLEAR command and the @ ... FILL command, as follows:

   CLEAR
   USE fill
   DEFINE WINDOW fill FROM 5,5 to 20,40
   BROWSE WINDOW fill NOCLEAR NOWAIT        * BROWSE NOCLEAR *
   DEACTIVATE WINDOW fill
   stop=inkey(0)
   USE                                      * USE *
   @ 5,0 FILL TO 15,35 COLOR r/gr+          * @ ... FILL *


Additional reference words: FoxDos FoxWin 2.00 2.50 2.50a
KBCategory: kbprg kbprb
KBSubcategory: FxprgBrowse


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.