Left(stringValue, numberOfCharacters)

Returns the specified number of characters from the left side of a String.

Dim ST1 As String * 12
ST1 = "CUBLOC"
Debug Left(ST1,4)        ' "CUBL" is printed.

See also Right and Mid.

Go CUBLOC home