lang • rtrim

RTrim$

sResult = RTrim$ ( sExpr AS String ) AS String sResult = RTrim ( sExpr AS String ) AS String

Strips white spaces from the right of the String sExpr.

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

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

Examples

Print "<"; RTrim$("Gambas"); ">"
<Gambas>
Print "<"; RTrim$("  Gambas  "); ">"
<  Gambas>

See also