Function DbRelation() Foundation
Returns the linking expression of a relation.
DbRelation( <nRelation> | <cRelName> ) --> cLinkExpression
The return value of DbRelation() is a character string containing the linking expression for the relation specified. If no relation exists, or if a non-existent relation is referred to, a null string ("") is returned.
The function DbRelation() determines the expression used when a parent work area navigates the record pointer of a child work area. The expression returned is the one specified to the command SET RELATION TO or the function DbSetRelation() defining the link between the two work areas. It usually corresponds to the index expression of the controlling index in a child work area.
If the function is used without the alias operator, it returns the linking expressions through which the current work area navigates its child work area.
The function DbRelation() is generally used with DbRSelect(). DbRSelect() returns the Select() number (ordinal number) of the child work area for a specified relation.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.