Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
NRelationshipNumber for Target()
Message
De
07/03/2003 03:23:59
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
06/03/2003 15:51:04
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:
00762605
Vues:
11
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform