Saltar para o conteúdo principal
Versão: Próximo

Trim

Trim ( aString ) : Text

ParameterTypeDescription
aStringTextText to trim
Function resultTextTrimmed text
History
ReleaseChanges
21Added

Description

The Trim command removes whitespace from both ends of the aString parameter and returns a new string, without modifying the original one. Whitespace includes spaces, tabs, LF, CR, etc.

To return a new string with whitespace trimmed from just one end, use Trim start or Trim end.

In the aString parameter, you can pass any text expression. It will be left untouched by the command.

The command returns the trimmed version of the aString string. If there is no whitespace at any end of aString, the returned string is identical as the one passed in parameter.

nota

This command is based upon the TrimString Ecmascript specification.

Example

var $input; $output : Text
$input:=" Hello World! "
$output:=Trim($input) //"Hello World!"

See also

Trim start
Trim end

Properties

Command number1853
Thread safe