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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only