>Hi everybody,
>
>Spent ~ 10 minutes (or more) trying to figure out this simple thing.
>
>I have this in my code:
>
>select c_Profiles
>scan while empty(m.lcError)
>...
>
>
>Couple of lines of code above I did a SUM on this file (I guess, I better do a select sum(..) then). And therefore I was at the bottom of the file. I used to the fact that SCAN goes top automatically and haven't realised that WHILE scope changes it.
>
>Well, at least I figured this one out :)
And let's not forget the option I've almost never seen used... but may come handy:
Scan rest
...
endscan