Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Relationship Problems
Message
De
22/09/1999 12:50:25
 
 
À
22/09/1999 10:12:13
Jolene Dicks
Human Resources Development Canada
St. John's, Terre-Neuve, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00267561
Message ID:
00267653
Vues:
22
Hi Jolene!

The code below looks ok, except if you end up at eof of the tmp table. if you are setting on eof() then the replace will not happen.

try it this way...
use your code up to the set relation command
locate
Replace all Gidetail.dnld_stat with 1 for;
Gidetail.sessionkey = Tmp.Sessionkey

* adding the locate statement will force the parent to the top.

>
>Use Gidetail && This is my child table
>Set order to sessionkey && Common field
>
>Select sessionkey from gisum;
> where Upld_stat = 1 into ;
> table o:\Tmp && Tmp will be my parent table
>
>Set Relation to Tmp.sessionkey into Gidetail
>
>Replace all Gidetail.dnld_stat with 1 for;
> Gidetail.sessionkey = Tmp.Sessionkey
--Todd Sherman
-Wake Up! Smell the Coffee!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform