613-518-1166 info@zimdatabases.com

ZIM Language Reference

$trim

< All Topics

$trim

Trims leading and trailing blanks from a character string in a field.

Syntax

$trim(string)

Parameters

string

a character string, or any expression that evaluates to a character string

Return Value

Character string.

Comments

Use $trim to remove leading and trailing spaces from a character string in a field.

For output purposes, the implicit length of the result returned by $trim is the same as the length of string.

Example

$trim(LastName)

Evaluates to “Smith” if LastName is stored as ” Smith “.

 

See Also

$ltrim

$ttrim

About Functional Expressions

Continuation Lines

Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Table of Contents