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

Click here to load this message in the networking platform