DIAdem Help

Method: Left for VBS

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

Method: Left for VBS

Returns a certain number of characters from the first character of a text onwards.

vLeft = Object.Left(string, length)
ObjectVBS
Object with this method. You do not need to specify this object.
stringVariant
Specifies the text.
lengthVariant
Specifies the number of characters to return.
vLeftVariant
Receives the returned text.

The following example returns the first three characters of the text DIAdem.

Dim MyString
MyString = Left("DIAdem", 3)
Call MsgBox(MyString) ' Returns "DIA"

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