Current location - Loan Platform Complete Network - Big data management - How to use Mid to cut the specified string to the end in VB?
How to use Mid to cut the specified string to the end in VB?
Mid (string, starting [,length])

String required parameter, the specified string.

Start required parameter, starting value position.

Length optional parameter, the number of characters returned. If omitted, the string will be intercepted from the beginning to the end and returned.

Example:

Dim MyString,FirstWord,MidWords

MyString = "Mid Function Demo "to create a string.

Firstword = Mid (mystring, 1, 3)' returns "Mid".

MidWords = Mid(MyString, 5)' returns "Funcion Demo" and intercepts it to the end.