Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why SCAN does not EXIT?
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00689830
Message ID:
00690032
Views:
18
I have had a similar problem. Add "SELECT TABLE1" just before "LOOP".

>Hi all.
>I have a few lines of code like this:
>SELECT TABLE1
>GO TOP
>xCOUNT=0
>SCAN FOR OWE <> 0
>STORE idSTD TO xidSTD
>SELECT TABLE2
>LOCATE FOR idSTD=xidSTD
>REPLACE OWE WITH TABLE1.OWE
>xCOUNT=xCOUNT+1
>LOOP
>EXIT
>ENDSCAN
>
>Problem is it keeps going into an endless loop, without exiting when the last match is found. What am I missing?
>
>TIA
>Ulises
Dennis Lindeman
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform