Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to improve this code
Message
De
06/12/2006 23:46:36
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
06/12/2006 21:25:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6
Divers
Thread ID:
01175464
Message ID:
01175489
Vues:
11
>
>sele csrtable
>go top
>do while .not. eof()
>	rch = csrkey
>	sele employee
>	go top
>	locate for rch=ckey
>	if found()
>		lc = locfle
>		sele csrtable
>		replace locfle with lc
>	enddo
>	skip
>enddo
>
I'd do it pretty much in Sergey's way, just a bit different:
* Assuming that you have index on ckey with TAG ckey
SELECT csrtable
REPLACE locfle WITH employee.locfle FOR seek(crstable.csrkey, "employee", "ckey") ;
   in crstable

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform