首页 > lang > trim 
 en fr de es it nl pl pt pt_BR mk sq ca hu cs tr ar fa id vi ko ja ru zh eo
前一个  下一个  编辑  重命名  撤销  搜索  管理  
文档  
警告! 该页面未翻译。  参见英文版 
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>

参见

String Functions, LTrim$, RTrim$