Equinox Online Help - Language Reference - A to Z
ParentRecordID |
|
---|---|
Applies to | |
Syntax | ParentRecordID |
Action | [Function] Returns the internal logical record id of the parent of the current record. |
Scope | Usable 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. |
Category | Record 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 |