Home > lang > trim 
 en fr de es it nl pl pt pt_BR mk sq ca hu cs tr ar fa id vi ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Search  Administration  
Documentation  
Warning! This page is not translated.  See english version 
Trim$
Result = Trim$ ( Expr AS String ) AS String
Result = Trim ( Expr AS String ) AS String

Strips white spaces from the left and from the right of the String Expr .

A white space is any character whose ASCII code is strictly lower than 32.

Trim is optimized so that the Expr string is not internally duplicated during the stripping.

Example

PRINT "<"; Trim$("Gambas"); ">"

<Gambas>

PRINT "<"; Trim$("  \nGambas " & Chr$(9) & " "); ">"

<Gambas>

See also

String Functions, LTrim$, RTrim$