Does anybody know if there is a utility where you can pass:
1) A bunch a text
2) How long each line of text should be
And it would give you back what each line should say?
The issue is that I have to write paragraphs where some of the verbiage is different but some is the same. My current method is to have three arrays. Depending on the situation, it will do a for-loop to print each line.
Example:
In the above example, I would pass the text and indicate that the maximum length is 60
1) A bunch a text
2) How long each line of text should be
And it would give you back what each line should say?
The issue is that I have to write paragraphs where some of the verbiage is different but some is the same. My current method is to have three arrays. Depending on the situation, it will do a for-loop to print each line.
Example:
Code:
[COLOR=#000000][SIZE=2][SIZE=2][FONT=courier new] /free Select; When (myParm = 1); myText = 'Short sentence.'; When (myParm = 2); myText = 'Medium length sentence.'; When (myParm = 3); myText = 'This sentence is longer than the others.'; EndSL; myText = %TRIM(myText) + ' The remaining verbiage would be the same.'; // 1 2 3 4 5 6 // 123456789012345678901234567890123456789012345678901234567890 // Short sentence. The remaining verbiage would be the same. // Medium length sentence. The remaining verbiage would be the // same. // This sentence is longer than the others. The remaining // verbiage would be the same. [/FONT][/SIZE][/SIZE][/COLOR]
Comment