Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calculating in a scan...endscan
Message
From
02/10/2006 14:12:27
 
 
To
02/10/2006 14:07:30
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01158457
Message ID:
01158639
Views:
31
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform