TRIM
Syntax
Command
Mandatory parameter Optional parameter Mandatory keyword Optional keyword |
<TrimVar> := TRIM (<Variable>[, LEFT | RIGHT])
Description
Removes the spaces in the beginning and/or end of a Realstring value. To remove the spaces for only one side of the value, you can specify the LEFT or RIGHT option.
Diagram

Returned value type
Realstring
Parameters
| Parameter | Description |
| <TrimVar> | Variable that will contain the trimmed value |
| <Variable> | Variable that contains the Realstring value to be trimmed. |
| LEFT | Removes only the left spaces from the Realstring value. |
| RIGHT | Removes only the right spaces from the Realstring value. |
Examples
str := trim (realstrg)
rlstr := trim (realstrg, left)
rlstr := trim (realstrg, left)
