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



"Rooney, Michael P [CI]" wrote:
> 
> otto,
> 
> Have you tried the JNI function "GetArrayLength" to determine the number of 
> elements in the array?
> To retrieve elements from an Object array-type you would use the 
> "GetObjectArrayElement" JNI
> function.
> 

Michael, Otto is using the RPG support that wrappers the JNI.  The RPG
compiler/runtime handles calling GetObjectArrayElement and copying the
Java array into the RPG array, setting any unpassed elements to null. 
Since RPG doesn't have variable-dimension arrays, the RPG program can't
get at the actual number of elements in the Java array.  (Although it
_is_ possible for RPG programmers to do the JNI calls directly.)


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.