TRIM

TRIM

Top  Previous  Next

Action

Returns a copy of a string with leading and trailing blanks removed

 

 

Syntax

var = TRIM( org )

 

 

Remarks

Var

String that receives the result.

Org

The string to remove the spaces from

TRIM is the same as a LTRIM() and RTRIM() call. It will remove the spaces on the left and right side of the string.

 

See also

RTRIM , LTRIM

 

 

Partial Example

Dim S As String * 6

S =" AB "

Print Ltrim(s)

Print Rtrim(s)

Print Trim(s)

End