Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why SCAN does not EXIT?
Message
From
14/08/2002 22:48:51
Walter Meester
HoogkarspelNetherlands
 
 
To
14/08/2002 22:19:46
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00689830
Message ID:
00689837
Views:
30
How about,
SELECT TABLE1
xCOUNT=0

SCAN FOR OWE <> 0
     STORE idSTD  TO xidSTD
     SELECT TABLE2
     LOCATE FOR idSTD=TABLE1.idSTD
     REPLACE OWE WITH TABLE1.OWE
     xCOUNT=xCOUNT+1
ENDSCAN
Walter,

>Problem is it keeps going into an endless loop, without exiting when the last match is found. What am I missing?
>
>TIA
>Ulises
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform