Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP Tables with Relation
Message
From
18/01/2017 01:59:22
 
 
To
18/01/2017 01:39:38
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows Server 2012 R2
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01646811
Message ID:
01646813
Views:
48
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform