I have strings of varying length. I would like to find out the length, and remove all characters after the 17th. Then when I have a string of 17 characters, I would like to append '...' to the end of the string.
For example:
Old string: 'hello world, goodbye world'
Chop off after 17 characters: 'hello world, good'
Now append 3 periods: 'hello world, good...'
Any ideas? Thanks,
Gavin
In reply to truncating a line by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |