%trim() Function

Top  Previous  Next

%trim() function eliminates the white space at the beginning and the end of the given string and returns the result.

Syntax:

@trim(string-expression)

 

Examples:

%trim(' xx ')  %// result: 'xx'

 

%set(x,'abc   ')

%trim(x)       %// result: 'abc'