Method: LTrim for VBS
- Updated2024-09-12
- 1 minute(s) read
Methods > Method: LTrim for VBS
Method: LTrim for VBS
Deletes leading blanks in a text.
vLTrim = Object.LTrim(string)
| Object | VBS Object with this method. You do not need to specify this object. |
| string | Variant Specifies the text. |
| vLTrim | Variant 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 "