Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP Tables with Relation
Message
 
 
À
18/01/2017 01:39:38
Al Doman (En ligne)
M3 Enterprises Inc.
North Vancouver, Colombie Britannique, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows Server 2012 R2
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01646811
Message ID:
01646813
Vues:
49
>>Something from the old days, and I cannot recall how to do that:
>>
>>I have a parent table selected with a relation to a child table that has an index order set on the foreign key.
>>
>>I want to scan through the parent table, and during that scan I need to process all records in the child table that relate to the parent table. Surprisingly when I SKIP +1 IN ChildTable it moves to all records, also the unrelated records. I thought it would only skip to those records that are matching the foreign key, and then get to EOF("ChildTable") as if there was a filter active? What am I missing?
>
>Maybe SET SKIP? i.e. http://fox.wikis.com/wc.dll?Wiki~SetSkip
>
>I generally refactor anything using SET RELATION etc. to using SQL. This has the side effect of occasionally cleaning up subtle bugs as well ;)
>
>I bet even amongst VFP maintenance programmers, familiarity with the various SET RELATION etc. ISAM coding techniques is waning.

SET SKIP would work, but it is a very complicated implementation when using more than one child table. I think you are correct, doing a SQL Select is much more convenient.
Christian Isberner
Software Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform