Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why doesn't this work?
Message
From
14/04/2006 12:18:35
 
 
To
13/04/2006 20:43:23
General information
Forum:
Visual FoxPro
Category:
CodeMine
Miscellaneous
Thread ID:
01113634
Message ID:
01113724
Views:
14
Thank-you Sam. You are almost correct, the Parent-Child relationship for
VFP tables uses the Set Key which, "As with filters, you have to do something to move the record pointer to the first matching record."
-- Hackers Guide

>>In the second time thru the scan loop the Pizza object is blank even though there are records in the child table. I've discovered that if I do a .Pizza.Gotop or something it works, but why is this?
>
>>Mike
>
>
>>Set Asserts On
>
>>loCDE = Createobject( 'cdeExample1' )
>
>>loCDE.openall
>
>>Select Delivery
>
>>Scan
>> loCDE.Delivery.PrimaryKeyChanged()
>
>> loDelivery = loCDE.Delivery.GetRecordData()
>> loPizza = loCDE.Pizza.GetRecordData()
>> Assert .F.
>>Endscan
>
>Are you doing a SET FILTER TO "something"? It sounds like it if you have to GO TOP.
Previous
Reply
Map
View

Click here to load this message in the networking platform