PRB: RESTORE WINDOW Does Not Restore Completely

Last reviewed: April 29, 1996
Article ID: Q106281
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, version 3.0
  • Microsoft FoxPro for MS-DOS, versions 2.5, 2.5a, and 2.5b
  • Microsoft FoxPro for Windows, versions 2.5, 2.5a, and 2.5b

SUMMARY

A window saved with the SAVE WINDOW command in FoxPro version 2.0 for MS-DOS will display differently depending on which platform and version of FoxPro you are using when the RESTORE WINDOW command is executed.

MORE INFORMATION

After you issue the SAVE WINDOW and RESTORE WINDOW commands in FoxPro 2.0 for MS-DOS, the window is properly displayed along with all the objects contained in the window. However, when you execute the RESTORE WINDOW command for a window saved in FoxPro version 2.0 in other versions and platforms of FoxPro, the window does not display as it does in FoxPro 2.0.

Steps to Reproduce Behavior

  1. In FoxPro version 2.0 for MS-DOS, create a new screen by choosing New from the File menu, selecting the Screen radio button, and choosing the OK button.

  2. From the Screen menu, choose Screen Layout, then select the Window radio button.

  3. In the Name text box, type "test" (without the quotation marks).

  4. In the Choose text box, type "m.wintest" (without the quotation marks).

  5. Choose the OK button.

  6. From the File menu, choose Save, and save the screen as WINTEST.

  7. Create a push button with a "Done" prompt that has the following VALID clause:

    CREATE TABLE winsave (notes M) APPEND BLANK SAVE WINDOW test TO MEMO notes USE CLEAR READ

  8. Generate and run the screen under FoxPro version 2.0 for MS-DOS.

  9. Close FoxPro version 2.0 for MS-DOS.

  10. Start FoxPro version 2.5 for MS-DOS and issue the following commands:

    USE winsave RESTORE WINDOW test FROM MEMO notes

    Make sure the default directory is the same as the one in which WINSAVE.DBF is saved.

The window appears truncated in the upper-left corner of the screen.

In FoxPro version 2.5 for Windows, the commands will execute without an error, but no window will appear or be in memory.

In FoxPro versions 2.5a and 2.5b for MS-DOS and FoxPro versions 2.5a and 2.5b for Windows, the window appears with the window name as the window title and no objects appear inside the window.


Additional reference words: VFoxWin 3.00 FoxDos FoxWin 2.50 2.50a 2.50b
KBCategory: kbenv kbprg kbprb
KBSubcategory: FxenvMemory


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: April 29, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.