trim(
TEXT
,
COUNT
)

The trim( function removes characters from the right edge of the text.


Parameters

This function has two parameters:

text – original text.

count – number of characters to remove from the original text.


Description

This function removes one or more characters from the right edge of the text. For example trim(text,4) removes the last four characters from the text.

trim("abcdef",1) ☞ abcde
trim("abcdef",2) ☞ abcd
trim("abcdef",12) ☞ 

If you want to trim characters from the beginning of the text, use the trimleft( function.

Note: This function is equivalent to:

text[1,-1-count]

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.