Trim Procedure

Returns a copy of a string without leading and trailing white spaces.

Syntax

[ s = ] Trim ( sStr )

The Trim procedure syntax has the following parts:

Name

Type

Description

s

BString

The result string

sStr

Val BString

Input string

Comments

White spaces includes '\r', '\n', '\t'. '\v', ' '. The function removes also nul characters from the right side  (ATEasy v14/2026)..

Example

Print Trim(" ATEasy ") ! This will print "ATEasy"

See Also

Left, Len, LTrim, Right, RTrim