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



Rob wrote:
>Thanks Hans.  I'll use that workaround for now.  But, if I wanted a couple
>of fields from that API, how would I pass that array of keys?

Actually, Barbara gave you the better solution:  Code DIM on
the parameter definition.  Since you don't know how many elements
will be returned until run-time, code DIM(1) or OPTIONS(*VARSIZE)
on the parameter definition.

(I just tried something:  If you code a scalar parameter on a
call where the prototype expects a OPTIONS(*VARSIZE) array, the
compiler accepts it!)

Oh yeah, one more thing:  Since you expect values back from the
API, don't code CONST on that parameter.  It may well work today,
but it's not guaranteed.

Cheers!  Hans

Hans Boldt, ILE RPG Development, IBM Toronto Lab, boldt@ca.ibm.com



As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.