Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Demystification of the SCAN
Message
 
To
07/03/2001 11:46:21
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00482753
Message ID:
00482760
Views:
8
>I have a mysterious situation. I would like to know what is wrong with it. This happens occasionnaly. For some kind of reason, the following code, sometimes, will skip the SCAN loop even if _TALLY>0.
>
>
>SELECT MySQL... INTO CURSOR TEMP
>IF _TALLY=0
>   RETURN
>ENDIF
>SCAN
>   This is my scan loop...
>ENDCAN
>Rest of code here...
>
>
>So, I always assumed that _TALLY>0, then the following code should not be executed. Well, sometimes, the SCAN is skipped completely. What can cause that?

I know several will respond that I dont need it, but I have a practice of doing a LOCATE before my scans. Just to ensure that I am at the top of the file. My 2 cents..
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Previous
Reply
Map
View

Click here to load this message in the networking platform