Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
NRelationshipNumber for Target()
Message
De
07/03/2003 10:35:25
 
 
À
07/03/2003 03:23:59
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00762442
Message ID:
00762730
Vues:
12
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform