Page 1 of 1

[RPG]New line in text

Posted: Fri Jan 13, 2017 7:07 pm
by MegumiSawada
Hi,

In the past post, it is written that you can show label in 2 lines using #Com_Owner.LineFeed.
(http://longrange.lansa.com.au/viewtopic.php?f=11&t=399)

How can we acheive it in RPG?
I think I can do it by putting some code(equal to #Com_Owner.LineFeed) but I'm not sure how to.

I appreciate your kind advice.

Best Regards,
Megumi Sawada

Re: [RPG]New line in text

Posted: Mon Jan 16, 2017 5:27 pm
by tsupartono
Megumi,
You can use the constant EBCDIC_LF.
Please see the following code fragment from EXAM0034 for example of usage:

Code: Select all

 EZI_QPanel_SetItemValue( P1_ShipTo : '121 Smith Street'
                                + EBCDIC_LF + 'Via Sometown'
                                + EBCDIC_LF + 'Into SomePlace' );          

Re: [RPG]New line in text

Posted: Mon Jan 16, 2017 6:32 pm
by MegumiSawada
Hi Tony,

Thank you! I'll try it.
Sorry, I should have been able to find that example...

Best Regards,
Megumi