Cicode Programming Reference > Cicode Function Categories > String Functions > StrTrim

StrTrim

Removes leading and trailing spaces from a string. Internal spaces are not removed from the string.

Syntax

StrTrim(String)

String:

The source string.

Return Value

String with leading and trailing spaces removed.

Related Functions

StrPad, StrFill

Example

Variable=StrTrim("     Test String     ");
! Sets Variable to "Test String".

See Also

String Functions, Using the Caret Escape Sequence Character

Published June 2018