Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to improve this code
Message
 
 
To
06/12/2006 21:25:38
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6
Miscellaneous
Thread ID:
01175464
Message ID:
01175465
Views:
7
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform