by Carlos Mora » Thu Jun 14, 2007 9:44 am
Te sirve dBRelation()? del NG del Clipper:
Syntax
DBRELATION(<nRelation>) --> cLinkExp
Arguments
<nRelation> is the position of the desired relation in the list of
current work area relations. The relations are numbered according to
the order in which they were defined with SET RELATION.
Returns
DBRELATION() returns a character string containing the linking
expression of the relation specified by <nRelation>. If there is no
RELATION SET for <nRelation>, DBRELATION() returns a null string ("").
Obviamente si en la expresion hay referencias a variables locales, creo que se va a complicar un poco.
Lo ideal sería tener una funcion que retorne una referencia al codeblock que se especifica en el momento de hacer la set relation, no se si en Harbour existe.
Saludos.