Mid(stringValue, location, numberOfCharacters)

Returns a specified number of characters from a String starting at a specified location.

Dim ST1 As String * 12
ST1 = "CUBLOC"
Debug Mid(ST1,2,4)      ' "UBLO" is printed.

See also Left and Right.

Go CUBLOC home