Function DbRSelect() Foundation
Returns the child work area of a relation.
DbRSelect( <nRelation> | <cRelName> ) --> nWorkarea
The return value of DbRSelect() is a positive integer indicating the child work area for the relation specified. If no relation exists or if a non-existing relation is referred to, the value zero is returned.
The function DbRSelect() allows determination of the child work area whose record pointer is moved from a parent work area. The child work area is specified as an alias name passed to the command SET RELATION TO or the function DbSetRelation() when the relation between the two work areas is defined.
When the function is used without the alias operator, it returns the number of the child work area linked to the current work area.
The function DbRSelect() is generally used with DbRelation(), which returns the expression used to link the child work area in the 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.