Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simpler question - please help
Message
From
14/02/2002 16:02:21
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
14/02/2002 15:52:58
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00620339
Message ID:
00620348
Views:
14
>Hello all once again....
>
>I have a cursor with 3 records.
>I have:
>do while !eof()
> commands
>enddo

You forgot SKIP at the end. Actually, this sort of loop is simpler with SCAN:
SCAN
   Commands
ENDSCAN
No GO TOP or SKIP required.

"Commands" should apply only to one single record, and not include an additional SKIP.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform