OLD RELATED ONE
OLD RELATED ONE ( aField )
Parameter | Type | Description | |
---|---|---|---|
aField | Field | → | Many field |
This command is not thread-safe, it cannot be used in preemptive code.
Description
OLD RELATED ONE operates the same way as RELATE ONE does, except that OLD RELATED ONE uses the old value of aField to establish the relation.
Note: OLD RELATED ONE uses the old value of the Many field as returned by the Old function. For more information, see the description of the Old command.
OLD RELATED ONE loads the record previously related to the current record. The fields in that record can then be accessed. If you want to modify this old related record and save it, you must call SAVE RELATED ONE. Note that there is no old related record for a newly created record.
System variables and sets
If the command has been executed correctly and if the related records have been loaded, the OK system variable is set to 1. If the user clicked on Cancel in the record selection dialog box (that appears when the related record has been modified), the OK variable is set to 0.