The Left function returns a specified amount of character's starting from the Left (beginning) of the string
Code:
RetVal = Left("MyString", 5)
'Returns "MyStr"
'First part is the string you are using
'Second part is the how many character's you want to return (starting from the left)
The Right function returns a specified amount of character's starting from the right (end) of the string
Code:
RetVal = Right("MyString", 5)
'Returns "tring"
'First part is the string you are using
'Second part is the how many character's you want to return (starting from the Right)
The Mid function returns a specified amount of character's starting from a specified location of the string.
Code:
RetVal = Mid("MyString", 2, 3)
'Returns "ySt"
'First part is the string you are using
'Second part is the position you want to start from
'Third part is the how many character's you want to return (starting from the
'position specified in the Second part)