string.ellipsize

Syntax string.ellipsize (s, ct)

Params s is the string you want to ellipsize.

ct is the maximum string length.

Action If the length of s is greater than ct, it shortens s and adds three dots, an ellipsis.

Returns The ellipsized string.

Examples string.ellipsize ("Mary had a little lamb.", 10)

   » "Mary ha..."

string.ellipsize ("I'd say that this was the best movie of the year, except it wasn't.", 51)

   » "I'd say that this was the best movie of the year..."

string.ellipsize ("Do you know the way to San Jose?", 100) //ct is greater than the length of the string

   » "Do you know the way to San Jose?"

Notes This verb is new in Frontier 6.1.

See Also string.delete

string.length

string.popTrailing

Discuss