RESTORE WINDOW Command

Restores to memory window definitions and window statuses saved to a window file or memo field.

RESTORE WINDOW WindowNameList | ALL FROM FileName
 | FROM MEMO MemoFieldName

Parameters

  • WindowNameList
    Specifies one or more windows to be restored. Separate the window names with commas.
  • ALL
    Restores all window definitions in the window file or memo field.
  • FROM FileName
    Specifies the window file from which windows are restored. A window file has a .win extension. If the file was given another extension when it was saved, you must include this extension in FileName.
  • FROM MEMO MemoFieldName
    Specifies the memo field from which the windows are restored.

Remarks

Use SAVE WINDOW to store window definitions in a window file or in a memo field.

Any windows in memory with the same names as those restored are overwritten. A window's status (hidden, active, and so on) when it is saved is preserved when it is restored.

Example

In the following example, a window named wOutput1 is defined and saved to a variable. All windows are cleared and the window named wOutput1 is restored and activated.

CLEAR
DEFINE WINDOW wOutput1 FROM 2,1 TO 13,75 TITLE 'Output' ;
   CLOSE FLOAT GROW ZOOM
SAVE WINDOW wOutput1 TO temp
CLEAR WINDOWS
RESTORE WINDOW wOutput1 FROM temp
ACTIVATE WINDOW wOutput1 
WAIT "The window wOutput1 has been restored" WINDOW
RELEASE WINDOW wOutput1 

See Also

ACTIVATE WINDOW | DEFINE WINDOW | SAVE WINDOWS