Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finding Parent Tag-Name field
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00553797
Message ID:
00553847
Vues:
12
This message has been marked as a message which has helped to the initial question of the thread.
>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.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform