That's why scan..endscan is so much simpler. Two word/two lines of code
Scan
..
Endscan
replaces seven words/four lines of code
go top
do while !eof()
....
skip
enddo
>It's a contamination from
>
>go top
>do while !eof()
> ....
> skip
>enddo
>
>
>>Why in this thread is everyone putting GO TOP before SCAN?
>>
>>>hi
>>>friend
>>>if u want scan..endscan
>>>i suggest follwoing funcs
>>>cursor must be readwrite
>>>
>>>
>>>local wbal
>>>wbal=0
>>>sele (yourcursorfile)
>>>
>>>go top
>>>scan while !eof()
>>>wbal=wbal+credit-debit
>>>repl reminder with wbal
>>>ends