Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why doesn't this work?
Message
De
14/04/2006 12:18:35
 
 
À
13/04/2006 20:43:23
Information générale
Forum:
Visual FoxPro
Catégorie:
CodeMine
Divers
Thread ID:
01113634
Message ID:
01113724
Vues:
13
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
Fil
Voir

Click here to load this message in the networking platform