>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,
With only child there how is the relation is defined ? Do you mean database level ? If so you could query :
lcChild = upper(lcTable)
lnRels = adbobjects(arrRels, 'RELATION')
for ix=1 to lnRels
if arrRels[ix,1]=lcChild
? 'Parent table :',arrRels[ix,2]
? 'Parent tag :',arrRels[ix,4]
? 'Child tag :',arrRels[ix,3]
endif
endfor
Cetin