|
Yes, but I still have only one Return. tic In general one return is enough, but like others have said, if you have to hurt yourself to accomplish it, it may not be worth it. Duane Christen -----Original Message----- From: Lim Hock-Chai [mailto:Lim.Hock-Chai@xxxxxxxxxxxxxxx] Sent: Thursday, July 28, 2005 1:12 PM To: RPG programming on the AS400 / iSeries Subject: RE: No Subroutines (was Re: Debugging many subprocedures) If you have multiple exsr to exitProcedure in a sub-procedure, wouldn't that consider multiple return (procedure returned in the mid of it)? The reason that you need exitProcedure sub-routine is probably because you need do want to do multiple return. Otherwise you could have coded all the cleanup codes at the end of the sub-proc. -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Christen, Duane J. Sent: Thursday, July 28, 2005 12:55 PM To: 'RPG programming on the AS400 / iSeries' Subject: RE: No Subroutines (was Re: Debugging many subprocedures) I only have one return from a procedure, with few exceptions, I just call the subroutine exitProcedure. Which contains any cleanup code (condition handler, dealloc storage, etc...) and then it returns. Duane Christen
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.