|
On Fri, 10 Dec 2004 SRamanujan@xxxxxxxxxxxxxxxxxx wrote: > Thanks Scott. I will check/try all this. > How do we call a method that does not return anything, a void or static? > A method that does not return anything works the same way (from RPG's perspective) as a subprocedure that doesn't return anything. You don't put a return value on the prototype. You call it with CALLP (which can be omitted in /FREE) If it's STATIC (which has nothing to do with whether it returns something or not!) then you put the STATIC RPG keyword on the prototype (on the PR line, not on the parameters) With STATIC, you don't have to pass an object as the first parm, since static methods can't be instantiated.
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.