|
On Wed, 13 Sep 2000, Gary Guthrie wrote: > Rather than worry about the size of the user space, why not increment a > counter each time you make a replacment (increment after the > replacement) and compare the counter to the number of pages. When > they're equal, you're finished. > > Will that be suitable? I want to detect when I am at the end of the report without having to pass the number of pages. But I guess I could use something like GetSpoolFileAttributes() and find out how many pages there are. > P.S. - Please be aware that the code was for a series of articles. It > was sample code only. I mention this because it doesn't handle a > situation where the spooled file is so large it won't fit in one user > space. Of course, that's a pretty hefty spooled file usually. If you > need to work with these gigantic spooled files, you'll need to modify > the utility to work with multiple user spaces. Enjoy. Yes, I thought about that. Right now it is not a problem. We'll see if I need to handle such a case. James Rich james@dansfoods.com +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.