Skip to Content
1
Former Member
Jan 16, 2012 at 05:54 PM

Formatting a String into Readable Text

1145 Views

Folks,

I have searched for an FM or code snippet that will help me do this but no luck so far so hopefully you can help.

I am using the READ_TEXT FM to bring back in a table of 175 entries with a max of 132 length.

I want to output this table onto a form which has a max length of 255 characters.

An example is probably best.

I receive:

STANDARD CONDITIONS FOR THE PURCHASE OF GOODS AND/OR SERVICES

1 Definitions

u201CThe Companyu201D the company trading as XXXXX XXXXX XXX or any of its

subsidiary companies described as the purchaser in the Contract;

u201CContractu201D means any contract agreed by the parties for the supply of

And want to output:

STANDARD CONDITIONS FOR THE PURCHASE OF GOODS AND/OR SERVICES

1 Definitions

u201CThe Companyu201D the company trading as XXXXX XXXXX XXX or any of its subsidiary companies described as the purchaser in the Contract;

u201CContractu201D means any contract agreed by the parties for the supply of

I hope this makes sense? I want to use the maximum amount 255 characters possible to me without splitting words in half. Any advice greatly appreciated.