Home / lang / trim 
Previous  Next  Edit  Rename  Undo  Refresh  Search  Administration   
fr  de  es  it  nl  pl  pt  pt_BR  mk  ca  ar  fa  vi  ja  ru  zh  zh_TW  eo 
Documentation
History
 
Trim$
Syntax
sResult = Trim$ ( sExpr AS String ) AS String
sResult = Trim ( sExpr AS String ) AS String

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

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

Examples

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

&lt;Gambas>

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

&lt;Gambas>

See also

String Functions  LTrim$  RTrim$