DIAdem Help

Method: LTrim for VBS

  • Updated2024-09-12
  • 1 minute(s) read

Method: LTrim for VBS

Deletes leading blanks in a text.

vLTrim = Object.LTrim(string)
ObjectVBS
Object with this method. You do not need to specify this object.
stringVariant
Specifies the text.
vLTrimVariant
Receives a text without leading blanks.

The following example deletes leading blanks in a text:

Dim MyString
MyString = Trim("    DIAdem   ")
Call MsgBox(MyString) ' Returns "DIAdem   "

See Also

Objects Overview

Related Topics

Filter | InStr | InStrB | InStrRev | Join | LCase | Left | LeftB | Len | LenB | LTrim | Mid | MidB | Replace | Right | RightB | RTrim | Space | Split | StrComp | String | StrReverse | Trim | UCase

Log in to get a better experience