Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding Parent Tag-Name field
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00553797
Message ID:
00554757
Views:
17
I'll try it. Thank you Pamela.

>Hi Roger,
>
>>>>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?
>
>If I understand you correctly, would something like this work?
>
>lcReturn = ''
>lnSelect = Select(0)
>
>FOR m.i = 1 TO AUsed(laTables)
> SELECT laTables[m.i,2]
> IF Alias(lnSelect) $ Upper(Set('Relation'))
> lcReturn = laTables[m.i,1]
> ENDIF
>ENDFOR
>Select(lnSelect)
>RETURN lcReturn
One can acquire everything in solitude but character.
Stendhal (1783-1842)
Previous
Reply
Map
View

Click here to load this message in the networking platform