String – Functions

Some examples for common functions.

length of a string “Len()”

dim mystring as String
mystring = "Hello World"
msgbox Len(mystring)

len

Next “Left()” and “Right()” using the “Hello World”

msgbox Left(mystring, 5)

left

msgbox Right(mystring, 5)

Right
There pretty easy, but there is also the “Mid(String, Integer)” and “Mid(String, Integer, Integer)”

MsgBox Mid(mystring, 5)

mid-5

MsgBox Mid(mystring, 2, 5)

mid-2.5
These are just a few check the Microsoft page out for more.

Leave a Reply

Your email address will not be published. Required fields are marked *