Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to improve this code
Message
From
06/12/2006 23:46:36
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
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:
01175489
Views:
10
>
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform