Using FoxPro 2.0 Screens in FoxPro for Windows

Last reviewed: June 27, 1995
Article ID: Q104794
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.5 and 2.5a

To modify FoxPro 2.0 for MS-DOS screens in FoxPro 2.5 or 2.5a for Windows, you must transport the screens from 2.0 to 2.5 format. However, the 2.0 .SPR code can be run without any modification in FoxPro 2.5 for Windows.

You have three options for bringing in 2.0 screens to 2.5 for Windows:

  • Run the 2.0 .SPR directly in 2.5. This will execute an MS-DOS-compatible screen that has dimensions similar to those in 2.0. FoxPro for Windows will use FoxFont, 9-point size, by default. Since the coordinates are coded into the .SPR, windows and objects will probably appear toward the upper-left corner of the desktop, but should not be off the edge of the 2.5 desktop. If the .SPR file has a window that is marked Center, it should calculate the center of the current monitor display using SROWS() and SCOLS().
  • Transport the 2.0 screens. This will create a much more "Windows- like" screen. Before choosing the Transport & Open button in the Transport dialog box, you may want to select a nonproportional font such as FoxFont, FoxPrint, or Courier for your GET objects. By default, the Transporter uses a proportional font for the GET objects, which may cause the contents of the GET objects to be cut off after transportation because of the predetermined object size of an MS-DOS-style screen.
  • Modify the transported 2.0 screens before program generation. This will allow the 2.0 screens to be customized to take advantage of FoxPro for Windows features.

NOTE: Back up all files prior to transportation to FoxPro 2.5 for Windows.


Additional reference words: FoxWin 2.50 2.50a 2.00 convert transfer import
export
KBCategory: kbprg
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: June 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.