>Hello all:
>
>In a Class - Is there a way to find out the parent Tag-Name when looking at a child table when a relation has been defined beetween Parent/Child, having only the child table available?
>
>Thank you.
Roger,
The two pieces of information really don't mesh. Relations can be defined on any expression from the parent table. A tag need not be used. The child is the only object that must have an active tag.
In addition, there is nothing about the child that will give you information about the parent. The child is a pawn without any knowledge that it is the target of a relation. Similar to what Cetin posted, you can go through a parse information about the current datasession using AUsed() (array of open tables), Set('Relation') (relations where the current workarea is a Parent), Relation() (expression used in relation) and Target() (child alias for relation specified).
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao