Microsoft.VisualBasic.Strings
Dim result As String = Left(str, length)
str (required; String)
The string to be processed
length (required; Long)
The number of characters to return from the left portion of the string
The Left function returns a string containing the leftmost length characters of str.
If length is 0, a zero-length string is returned.
If length is greater than the length of str, str is returned.
If length is less than zero or is Nothing, an error is generated.
If str is Nothing, Left returns Nothing.
Because of naming conflicts, you may have to preface this function with the name of the Microsoft.VisualBasic namespace.
Use the Len function to determine the overall length of str.
Mid Function, Right Function