Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calculating in a scan...endscan
Message
From
03/10/2006 03:51:29
 
 
To
03/10/2006 03:11:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01158457
Message ID:
01158781
Views:
35
>>>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
>>
>>
>>Did u ever write in Cobol ?
>>How meny lines wld such 'task' take in Cobol ?
>>
>>I guess that is why we all love Fox - Until .NET do us apart :))
>>( No flares pls / just kiddin' )
>
>I wrote a few lines of Cobol about 30 years ago, but I must admit that I have forgotten most of it. I also remember that in MS Basic on my first "real" computer, a Tandy TRS80 compatible, you could do a whole lot of stuff in just one line, but it was not very easy to debug. :-)

I don't know how is Cobol doing nowdays but back then (some 20 years ago),
in order to do very simple processing of one table, you wld have to write
full blown program consisted of 4 divisions.
I don't think you wld be able to get away with less then 100 lines for
this running balance solely.

When I started with dbase3, even 'dreaded'

select ...
go top
do while !eof()
.

skip
enddo

seemed like revolution to me :)
*****************
Srdjan Djordjevic
Limassol, Cyprus

Free Reporting Framework for VFP9 ;
www.Report-Sculptor.Com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform