MV.PRESERVE.COM Statement  
Previous  Top  Next

Description  
 
This routine will save or restore the commonly used COMMON variables into/from an array.  
 
Syntax  

MV.PRESERVE.COM (Option, MAT SaveArea)  
 
Variable
Description
Range/Comments
Option
Determines whether to save or restore
0 to 3
MAT SaveArea
An array to store the COMMON variables
Must have 52 elements
 
 
The list below is of the COMMON variables that are affected by this routine, in order that they are stored in the array SaveArea.  

The Option variable can be:  

Option
Description
0
Save these COMMON variables (see below for a list of the variables stored)
1
Restore all COMMON variables from the array
2
Restore the variables except the first 4 from the list below
3
Restore the variables 11 to 18 from the list below
 

document Remarks  
 
The COMMON variables stored/restored (in strict order as stored in the array):  

Array No.
COMMON variable
Description
1
FLD
Contents of the main record affected
2
RECKEY
Id to the main record
3
Work
Work area
4
Otherec
Another work area
5
Logicfl
Logical file name
6
MVNO
Current multi-value line no.
7
Action
Type of maintenance
8
Itemdet
Current field details
9
Mnflnm
Main record's file
10
Mflno
Opened main file variable
11
Orig
Original FLD record
12
Lockedkey
Main file key locked
13
HEAD
Header text
14
ScrImage
Current screen
15
StatusLine
Status line text
16
BoxParms
Last box coordinates
17
Outval
Output value
18
OvFlags
Output value flags
19
Fxrefno
Cross reference file
20
Fxref
Cross reference details
21
VBTERM
0=not GUI, 1=GUI
22
VBDATA
GUI information
23-32
Userdta
User specific array
33-52
Reserved1
OSMOSiS reserved array