| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > RelationManager > RelationManager Methods >====== GetRelation(returns reference to relation manager) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[getnbrelations returns number of relations .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[getrelationtype returns relation type .htm|{{btn_next_n.gif|Next page}}]] | | || | | **GetRelation** | **( | **//relationposition //**| **) | | | | | //relatedfile //| | {{blk2blue.jpg|blk2blue.jpg}} | **GetRelation** | Returns a reference to the objects relation manager. | | //relationposition// | An integer constant, variable, EQUATE or expresssion that contains the relation number for the objects primary file. | | //relatedfile// | The label of the file to query relations. | The **GetRelation **method returns a reference to the objects relation manager based on the specified relation position or related file. | **GetRelation**(//relationposition//) | Returns the relation manager for the specified //relationposition// in the internal list of relations. | | **GetRelation**(//relatedfile//) | Returns the relation manager for the specified file. | **Return Data Type:**     Reference to RelationManager object