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 MODIFY SUBRECORD command 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.
Any modifications made to the subrecord will actually only be saved if the parent record itself is saved.
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.