Difference between revisions of "SAVE WINDOW"

From Recital Documentation Wiki
Jump to: navigation, search
 
Line 1: Line 1:
=SAVE WINDOW=
 
 
 
 
==Class==
 
==Class==
 
Screen Windows
 
Screen Windows
Line 28: Line 25:
 
clear
 
clear
 
define window sales from 2,1 to 13,75;
 
define window sales from 2,1 to 13,75;
title "Today's Sales"
+
  title "Today's Sales"
 
use sales
 
use sales
 
total on amt_rcvc to temp;
 
total on amt_rcvc to temp;
for date = date()
+
  for date = date()
 
use temp
 
use temp
list fields item, amt_recvd;
+
list fields item, amt_recvd
 
save window sales to stats
 
save window sales to stats
 
</code>
 
</code>

Revision as of 13:07, 26 May 2009

Class

Screen Windows


Purpose

Save window definition to a file


Syntax

SAVE WINDOW <window-name> | <window-name list> | ALL TO <.win filename>


See Also

ACTIVATE SCREEN, ACTIVATE WINDOW, CLEAR WINDOWS, DEACTIVATE WINDOW, DEFINE WINDOW, HIDE WINDOW, MODIFY MEMO, MOVE WINDOW, RELEASE WINDOWS, RESIZE WINDOW, RESTORE WINDOW, SHOW WINDOW, SET COMMANDWINDOW, SET ERRORWINDOW, SET STATUS, SET TRACEWINDOW, SET WINDOW OF EDIT, SET WINDOW OF MEMO, WCOLS(), WEXIST(), WONTOP(), WOUTPUT(), WROWS(), WVISIBLE()


Description

The SAVE WINDOW command saves window definitions to a file that can be restored later with the RESTORE WINDOW command. A window is an area of the screen designated for output and input. There is no limit to the number of defined windows. Windows are created with the DEFINE WINDOW command and activated with the ACTIVATE WINDOW command. You may save a single window, a group of windows, or all the currently defined windows in the window file. The <window-name> is the name of the window as specified in the DEFINE WINDOW command. To save a group of windows, use the <window-name list>, which is a list of window names, each separated by a comma. To save all currently defined windows, use the ALL keyword.

By default, the SAVE WINDOW command saves windows to a file with a ".win" extension, however you may specify any extension desired. When windows are restored, they have the same status they had when last stored with the SAVE WINDOW command. Windows being restored will overwrite any current window with the same name.


Example

clear
define window sales from 2,1 to 13,75;
  title "Today's Sales"
use sales
total on amt_rcvc to temp;
  for date = date()
use temp
list fields item, amt_recvd
save window sales to stats


Products

Recital Mirage Server, Recital Terminal Developer