Behavior of the SET DISPLAY TO Command in FPW

ID: Q120237

The information in this article applies to:

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

Last Reviewed: August 28, 1995