Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NRelationshipNumber for Target()
Message
From
07/03/2003 10:35:25
 
 
To
07/03/2003 03:23:59
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00762442
Message ID:
00762730
Views:
13
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 && 1000 is crazy high
>  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
Previous
Reply
Map
View

Click here to load this message in the networking platform