hi Cetin
thanks for your reply. thats what i ended up doing, i just though there was a more 'propper' way, a command i overlocked, or something. this solution seemed to me not to be the 'fine english way' as the germans say.
thank again
>>hi everybody
>>
>>how can i programaticly find out the 'nRelationshipNumber' for the Target command (Vfp6)? i know the parent alias and the child alias.
>>
>>thanks in advance your help.
>
>Loop through targets till you find the child alias. ie:
>
>For ix=1 To 1000
> If ( Target(ix,lcParent) == Upper(lcChild) Or Empty(Target(ix,lcParent)) )
> Exit
> Endif
>Endfor
>If ( !Empty(Target(ix,lcParent)) )
> ? ix,TARGET(ix,lcParent),RELATION(ix,lcParent)
>Else
> ? 'No relation'
>Endif
>
Cetin