|Keep It Simple, Stupid|
Re^3: In search of a better way to trim string lengthby davido (Archbishop)
|on Jul 19, 2004 at 15:34 UTC||Need Help??|
Maybe I'm missing something?
Only that I was just providing a starting point to illustrate a method. I figured you would tweak it to meet your needs. But in fairness, I should have provided an answer that produced exactly what you were looking for. I've modified my answer to do what I think your question was asking, and will paste it below...
The problem with my original (I think) was that it broke your original string into substrings of 'n' characters. What you were looking for was simply truncation, with trailing '...' elipses. Here ya go...
Hope this helps.