Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to improve this code
Message
 
 
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:
01175612
Vues:
11
You beat me to it. Nothing unusual about that <g>.


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

Click here to load this message in the networking platform