STRING.trim

Removes leading a trailing blanks.

Syntax

trim( )
       RETURNING result STRING

Usage

This method deletes the white space characters before the first character and after the last character of the current STRING variable and returns the resulting string.

If the original STRING variable is NULL, the result will be NULL.

Example

MAIN
  DEFINE s STRING
  LET s = "   Some text   "
  DISPLAY s.trim()
END MAIN