17. Forms Statements : set_frs Statement--Set FRS Features : Setting the Display Mode of a Form
 
Share this page                  
Setting the Display Mode of a Form
The display mode of a form can be set using the mode constant. The syntax is:
set_frs form (mode[(formname)] = modetype)
You can specify both formname and modetype as quoted or unquoted string literals or as program string variables. The modetype must evaluate to one of the following: fill, update, read, or query.
The following statement changes the mode of the current form to the read mode:
exec frs set_frs form (mode = read);
Note:  If a form containing a table field is set to read mode, the table field mode is not changed; however, the table field responds as if it is in read mode.