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



Thanks Paul

That was it.


-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Paul Therrien
Sent: Friday, July 07, 2017 1:27 PM
To: RPG programming on the IBM i (AS/400 and iSeries) <rpg400-l@xxxxxxxxxxxx>
Subject: Re: hssf_merge

take 'const' off of the sheet parm in the PI

Paul

On 2017-07-07 13:24, Smith, Mike wrote:

I meant to send the hssf_merge proto type, but got in a hurry for lunch.
hssf_merge PR
s like(HSSFSheet)
rf like(jint) value
cf like(jshort) value
rt like(jint) value
ct like(jshort) value

P PRCDTL B
D PRCDTL PI
D sheet like(HSSFSheet) const
D rowcount 10I 0

rowcount += 1;
row = HSSFSheet_createRow(sheet: rowcount);

rownum = rowcount ;
hssf_merge(sheet: rownum: 0: rownum: 5);

I added the rownum variable simply because I couldn't get rowcount to work.

Mike
-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of
Darren Strong
Sent: Friday, July 07, 2017 12:47 PM
To: RPG programming on the IBM i (AS/400 and iSeries)
<rpg400-l@xxxxxxxxxxxx>
Subject: Re: hssf_merge

Seems to be that its failing at the RPG level, rather than the java level, so you're going to either need to looks at both the definition of hssf_merge and sheet, or provide them to us to see if we can make some sense of the error.

___________________________________
Darren Strong
Dekko

From: "Smith, Mike" <Mike_Smith@xxxxxxxxxxxxxxxx>
To: "RPG programming on the IBM i / System i (rpg400-l@xxxxxxxxxxxx)"
<rpg400-l@xxxxxxxxxxxx>
Date: 07/07/2017 11:59 AM
Subject: hssf_merge
Sent by: "RPG400-L" <rpg400-l-bounces@xxxxxxxxxxxx>

I am having a difficult time with this.

I am trying to call hssf_merge like this

D rownum S 10I 0

hssf_merge(sheet: rownum: 0: rownum: 5);

I'm getting a RNF7542 Parameter 1 is not valid as a parameter passed by reference.

Guidance appreciated.

Mike

NOTICE: This message, including any attachment, is intended as a confidential and privileged communication. If you have received this message in error, or are not the named recipient(s), please immediately notify the sender and delete this message.
--
This is the RPG programming on the IBM i (AS/400 and iSeries)
(RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD

--
This is the RPG programming on the IBM i (AS/400 and iSeries)
(RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD

NOTICE: This message, including any attachment, is intended as a confidential and privileged communication. If you have received this message in error, or are not the named recipient(s), please immediately notify the sender and delete this message.
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: http://amzn.to/2dEadiD

NOTICE: This message, including any attachment, is intended as a confidential and privileged communication. If you have received this message in error, or are not the named recipient(s), please immediately notify the sender and delete this message.

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.