### Trim (str)

Basic and Crystal syntax.

##### Arguments

str is a text string to be trimmed.

##### Returns

Text String

##### Action

The Trim function removes leading and trailing spaces from string arguments.

##### Typical uses

Use this function any time there are leading and/or trailing blanks in a text object that may interfere with an alignment of text strings, a character count, or with a calculation (if the string is eventually converted to a Number).

##### Examples

The following examples are applicable to both Basic and Crystal syntax:

`Trim(" abcde ")`

Returns "abcde".

##### Comments

This function is designed to work like the Visual Basic function of the same name.

Seagate Software, Inc. http://www.seagatesoftware.com Please send comments to: techpubs@seagatesoftware.com