LTrim, LTrim$ (functions)

Syntax
LTrim[$](text)
Description Returns text with the leading spaces removed.
Comments LTrim$ returns a String , whereas LTrim returns a String variant. Null is returned if text is Null .
Example This example displays a right-justified string and its LTrim result. Const crlf = Chr$(13) + Chr$(10)
Sub Main()
  txt$ = "      This is text           "
  tr$ = LTrim(txt$)
  MsgBox "Original ->" & txt$ & "<-" & crlf & "Left Trimmed ->" & tr$ & "<-"
End Sub
See Also RTrim, RTrim$ (functions); Trim, Trim$ (functions).