Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does SCAN always go to the top of the cursor?
Message
From
05/03/2018 11:09:54
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01658080
Message ID:
01658536
Views:
112
>Hi,
>
>I was under impression that SCAN always goes to the top of the cursor. Am I mistaken?
>
>I have a code where the record pointer of a cursor is on the 2nd record (the cursor has two records). Then, I call SCAN, update this record, and ENDSCAN. When I go through the code with the debugger, the SCAN/ENDSCAN exists right after the first/current/second record.
>
>Is it required that I do GO TOP before SCAN?
>
>TIA
seek "mykey"
scan rest while myfield="mykey"
endscan
or use "locate" intead of "seek"
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform