RDD

DbRelation()

Return the linking expression of a relation

Syntax

Signature
DbRelation( nRelation ) --> cLinkExp

Arguments

nRelation

One-based relation number. Zero selects relation 1.

Return value

The relation's linking expression, or an empty string when none exists.

Description

DbRelation() returns the expression used to link the selected relation of the current work area to its child area.

Notes

It does not change or remove the relation.

Example

DbRelation.prg
PROCEDURE Main()

   QOut( "Relation: " + DbRelation( 1 ) )

   RETURN

Output

See also