version 3
MODIFY SUBRECORD (subtable; form{; *})
| Parameter | Type | Description | |
| subtable | Subtable | Subtable to use for data entry | |
| form | Form to use for data entry | ||
| * | Hide scroll bars |
Description
The command MODIFY SUBRECORD displays the current subrecord of subtable for modification using the form form. The form must belong to subtable.
A current record for the parent table must exist. If a current parent record does not exist for the process, MODIFY SUBRECORD has no effect. In addition, if there is no current subrecord, then MODIFY SUBRECORD does nothing.
The subrecord is kept in memory (accepted) if the user clicks an Accept button or presses the Enter key (numeric pad), or if the ACCEPT command is executed. After the subrecord has been modified, the parent record must be explicitly saved in order for the subrecord to be saved.
The subrecord is not modified if the user clicks a Cancel button or presses the cancel key combination (Ctrl-Period on Windows, Command-Period on Macintosh), or if the CANCEL command is executed.
After a call to MODIFY SUBRECORD, OK is set to 1 if the subrecord modifications are accepted, to 0 if canceled.
The form is displayed in the frontmost window of the process. The window has scroll bars and a size box. Specifying the optional * parameter causes the window to be drawn without scroll bars or a size box.
See Also
ACCEPT, ADD SUBRECORD, CANCEL, SAVE RECORD.
System Variables or Sets
Accepting the subrecord modifications sets the OK system variable to 1; canceling it sets the OK system variable to 0.