|
This bothered me all night. In a recent discussion about printing a subfile Scott mentioned using a for/endfor loop instead of the dow loop. No one commented on it. If I understand correctly the for/endfor loop would do the following: If we define SFLRECS as SFLSIZE(&SFLRECS) and wCount as like(SFLRECS) then the for loop looks like this: C for wCount = 1 to SFLRECS C wCount chain SFL C exsr PrintLine C endfor This is all that is needed. No priming chain or read, no need to set wCount to 1, no need to increment wCount, and no need to worry about %eof. This is much leaner, clearer, and intuitive to my mind. That is, if I have understood what he said correctly??? --------------------------------- Booth Martin http://www.martinvt.com ---------------------------------
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.