SAVE WINDOWS Command Example

In the following example, a window named wOutput1 is created, and the window definition is saved to the file Temp.win. All windows are cleared and wOutput1 is restored from the file and activated.

CLEAR
DEFINE WINDOW wOutput1 FROM 2,1 TO 13,75 TITLE 'Output' ;
   CLOSE FLOAT GROW ZOOM
ACTIVATE WINDOW wOutput1 
@ 1,1 SAY 'This is the contents of the window'
SAVE WINDOWS wOutput1 TO temp
CLEAR WINDOWS
WAIT WINDOW 'The window has been saved - Press a key'

RESTORE WINDOW wOutput1 FROM temp
ACTIVATE WINDOW wOutput1 
WAIT WINDOW 'The window has been restored - Press a key'

DEACTIVATE WINDOW wOutput1 
RELEASE WINDOW wOutput1 
DELETE FILE temp.win