Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to improve this code
Message
 
 
À
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:
01175465
Vues:
8
SELECT employee
* Assuming that you have index on ckey with TAG ckey
SET ORDER TO ckey
SELECT csrtable
SET RELATION TO csrkey INTO employee
REPLACE locfle WITH employee.locfle FOR FOUND("employee")
BTW, It's better to use SCAN...ENDSCAN instead of DO WHILE.

>
>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
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform