%Trim function


Function
The function removes trailing spaces or other characters from the specified text string.


Declaration


TEXT %Trim(
   TEXT in string
   TEXT in charToRemove := " "
 )


Parameters


stringText string.
charToRemoveA character that will be removed from the start and from the end of string (optional parameter).


Example


%Trim("  Text Some Text  ")      	; returns the value of "Text Some Text"
%Trim("..Text Some Text....", ".") 	; returns the value of "Text Some Text"


%Trim function


Function
The function removes trailing spaces from the specified text string.


Declaration


TEXT %Trim(
   TEXT in string
 )


Parameters


stringText string.


Example


%Trim("  Text Some Text  ")      ; returns the value of "Text Some Text"