Behavior of the SET DISPLAY TO Command in FPW

Last reviewed: August 28, 1995
Article ID: Q120237
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.5x, 2.6, 2.6a

SUMMARY

The commands

   SET DISPLAY TO VGA25
   SET DISPLAY TO VGA50

were designed for use in the MS-DOS environment in order to provide a way to set the number of lines available on the screen of a VGA monitor. With the VGA50 setting, 50 lines are available versus the default 25. These commands can be used in FoxPro for Windows as well, but the resulting behavior will be different. In all versions of FoxPro for Windows, the results will be as follows:

   SET DISPLAY TO VGA25     && Screen Font becomes FoxFont Regular 9
   SET DISPLAY TO VGA50     && Screen Font becomes FoxFont Regular 7

MORE INFORMATION

This behavior is by design. The main FoxPro window will also be altered to allow the number of lines specified. In this sense, the commands function similarly to the way they do in MS-DOS FoxPro.

Other variations of the command and their results in FPW include:

   SET DISPLAY TO CGA       && Screen Font becomes FoxFont Regular 9
   SET DISPLAY TO COLOR     && DISPLAY NOT AVAILABLE Error
   SET DISPLAY TO EGA25     && Screen Font becomes FoxFont Regular 9
   SET DISPLAY TO EGA43     && Screen Font becomes FoxFont Regular 7
   SET DISPLAY TO MONO      && DISPLAY NOT AVAILABLE Error

In FoxPro 2.5x for Windows, the following command will generate the error message "Invalid Set Expression":

   ? SET('DISPLAY')

However, in FoxPro 2.6 and later for Windows, the results vga25 or vga50 will display on the desktop, which is the behavior exhibited in the MS-DOS versions of FoxPro.

REFERENCES

"Language Reference," FoxPro for MS-DOS and Windows, version 2.5 or 2.6, page L3-918 to L3-919


Additional reference words: FoxWin 2.50 2.50a 2.50b 2.60 2.60a resolution
errmsg
KBCategory: kbprg kbui kberrmsg
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: August 28, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.