4D v13.4

OLD RELATED ONE

Home

 
4D v13.4
OLD RELATED ONE

OLD RELATED ONE 


 

OLD RELATED ONE ( aField ) 
Parameter Type   Description
aField  Field in Many field

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.

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.

 
PROPERTIES 

Product: 4D
Theme: Relations
Number: 44

The OK variable is changed by the command

 
INDEX

Alphabetical list of commands

 
HISTORY 

Modified: 4D v11 SQL

 
SEE ALSO 

Old
OLD RELATED MANY
RELATE ONE
SAVE RELATED ONE