Microsoft KB Archive/120237

{| = Behavior of the SET DISPLAY TO Command in FPW =
 * width="100%"|

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.