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



Duane,

I tried your code and mergeStrings returned the last array element.

I modified the statement at line 112 from:

returnString = %Str(string(x));

to

returnString = returnString + %Str(string(x));

and it seemed to work as expected.

Mel Rothman



Christen, Duane J. wrote:
I am trying to build a procedure which will concatinate several parameters
and return one string. I have made the assumption that a procedure's
parameter pointers (passed by value) are stored sequentially in memory. This
looks to be as true in RPGIV as it is in C, (argv) so I set my array's
basing pointer to the address of the first parameter, the array elements
each contain the same address as the corrisponding parameter, as I would
expect, but I am only able to access the first parameter's data through the
array either in the compiled code or with the debugger. The code is at: http://code.midrange.com/index.php?id=9356ecdb93

How do I work around this? Is there a way to process parameters as a list in RPGIV, rather than individually?
Duane Christen



NOTICE: This electronic mail transmission may contain confidential
information and is intended only for the person(s) named.  Any use, copying
or disclosure by any other person is strictly prohibited. If you have
received this transmission in error, please notify the sender via e-mail.





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.