STR_TRIM
Use the STR_TRIM script function to remove leading and trailing spaces from a string.
Syntax
STR_TRIM (String)
Parameters
| Parameter | Description | Format |
|---|---|---|
| String | Alphanumeric string to process. | script literal or script variable |
Return Codes
The STR_TRIM function returns the input string with leading and trailing spaces removed.
Examples
The following example removes the leading and trailing spaces from the string " Database opening... " and prints the result in the activation report.
: SET &RET# = STR_TRIM (" Database opening... " )
: PRINT &RET#
See also: