|
Ali Ekinci wrote: > > I meant (a) String s = null; > > I have an String type object, and I want to make it null. > > D parm S O CLASS(*JAVA:'java.lang.String') > D dim(11) > .... > s = *NULL; > > can I just say > > parm(1)=s; or parm(1)=*NULL > Either one of those will make parm(1) null. This will work for any type of object. You could also use clear parm(1); RPG object references are initialized to null.
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.