Sub Trim($s As String) As String
Sub LTrim($s As String) As String
Sub RTrim($s As String) As String


Returns a string that contains a copy of the specified string without leading spaces (LTrim), without trailing spaces (RTrim), or without leading and trailing spaces (Trim).


Parameters


  • $s ... String expression to process.


Example:

Dim $s

$s = Trim(" a text ")
' returns $s = "a text"