[RPG]New line in text

Please do not use to report errors- use your regional help desk.
Please mark posts as being for RPG or RDMLX (LANSA) developer.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
Post Reply
MegumiSawada
Posts: 268
Joined: Tue Feb 19, 2013 5:18 pm

[RPG]New line in text

Post 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
tsupartono
Posts: 289
Joined: Wed Apr 18, 2012 10:21 am

Re: [RPG]New line in text

Post 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' );          
MegumiSawada
Posts: 268
Joined: Tue Feb 19, 2013 5:18 pm

Re: [RPG]New line in text

Post by MegumiSawada »

Hi Tony,

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

Best Regards,
Megumi
Post Reply