× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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 thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.