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.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement