MyVar = 'This is a sentence of around '
+ '130 characters containing apostrophes '
+ 'an' + '''' + 'all';
Or
MyVar = 'This is a sentence of around '
+ '130 characters containing apostrophes '
+ 'an'''all';
Haven't tested the second one, but I believe that's correct.
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of David FOXWELL
Sent: Tuesday, February 15, 2011 8:28 AM
To: RPG programming on the IBM i / System i
Subject: Eval variable = long text
Hi all,
In Free form,
How do I write :
MyVar = "This is a sentence of around 130 characters containing apostrophes an'all"
Message file is not a possibility for me.
I don't want to put it in a constant as I think it will never be reused and I cannot give it a meaningful name.
Thanks
--
This is the RPG programming on the IBM i / System i (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.
Notice from Bob Evans Farms, Inc: This e-mail message, including any attachments, may contain confidential information that is intended only for the person or entity to which it is addressed. Any unauthorized review, use, disclosure or distribution is strictly prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message and any attachments.
As an Amazon Associate we earn from qualifying purchases.