Was this helpful?
Summary of Effects
The following chart summarizes the effects of the mode statement:
Possible Action
Effect
Clears simple fields:
      In Fill mode?
Reinitializes to VIFRED defaults
      In Update mode?
Leaves fields unchanged
      In Read mode?
Leaves fields unchanged
      In Query mode?
Clears fields
Clears values in simple fields with attribute Keep Previous Value (set in VIFRED):
 
      In Fill mode?
No
      In Update mode?
No
      In Read mode?
No
      In Query mode?
Yes
Clears table fields?
No
Clears global variables?
No
Reruns initialize block?
No
Resets the forms constant change to 0?
Yes
Ends an Unloadtable loop?
No
Ends an attached query (submenu)?
No. After the attached query, the form returns to the mode in effect prior to the submenu.
Allows entry and exit activations to occur:
 
      In Fill mode?
Yes
      In Read mode?
No
      In Query mode?
No
Examples
Put the current form in fill mode:
mode 'fill';
Change the display mode according to the value of the modetype field:
mode :modetype;
Save, in local variables, the values currently displayed in the name and date fields, change display mode to query, and redisplay the values saved in the local variables:
tname := name; 
tdate := date; 
mode 'query'; 
name := tname; 
date := tdate; 
redisplay;
Last modified date: 11/09/2022