RDD

DbRSelect()

Return the target work area of a relation

Syntax

Signature
DbRSelect( nRelation ) --> nWorkArea

Arguments

nRelation

One-based relation number. Zero selects relation 1.

Return value

The child work-area number, or 0 when no such relation exists.

Description

DbRSelect() returns the work-area number targeted by a relation from the current work area.

Notes

It does not change the selected work area.

Example

DbRselect.prg
PROCEDURE Main()

   QOut( "Related work area: " + LTrim( Str( DbRSelect( 1 ) ) ) )

   RETURN

Output

See also