Equinox Online Help - Language Reference - A to Z

Home

ParentRecordID

Applies to
SyntaxParentRecordID
Action[Function] Returns the internal logical record id of the parent of the current record.
ScopeUsable anywhere.
Notes

This function returns the internal logical record id of the parent of the current record, or zero if there is no current record or if the current record has no parent. This number uniquely identifies the parent record in its table. It may change after the parent table is optimised.

Both ParentRecordID and RecordID work in the current subtable block. To identify a grandparent subtable into the parent table and call ParentRecord ID from there.

The use of this function is not recommended except for debug purposes as the id may change if the record is optimised.

CategoryRecord navigation
See Also ExecuteTaskParent, RecordID
Example

This example sets the text label with the object name oRecID to be the parent record id of the current record. In BeforeDisplay

oRecID.text = ParentRecordID