On 2021-04-13 1:22 p.m., Peter Dow wrote:
...
I'm not sure I'd ever use it this way, but because it said %split returns an array, would the following syntax be allowed?

    the2ndWord = %split(sentence)(2)


No, RPG doesn't allow indexing of %SPLIT. Similar to the way it doesn't allow indexing a procedure call that returns an array.

As John says, RPG isn't most languages.

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.