Left

Public Function Left(ByVal InputString As String, ByVal Count As Long) As String

Returns the specified number of characters from the left of the specified string.

Dim lString As String = "Hello World"
SendDebug Left(lString, 3) 'Prints 'Hel'
SendDebug Left(lString, 0) 'Prints ''
SendDebug Left(lString, 1024) 'Prints 'Hello World'

See also: