长度
str1 = "abcdefghijklmn"
MsgBox Len(str1)
片选
str1 = "abcdefghijklmn"
MsgBox Left(str1, 2)
MsgBox Right(str1, 2)
MsgBox Mid(str1, 3, 2)
查找
str1 = "abcdefghijklmn"
MsgBox InStr(str1, "ij")
替换
str1 = "abcdefghijklmn"
MsgBox Replace(str1, "ij", "ab")
转换
str1 = "abCdefghijklmn"
MsgBox UCase(str1)
MsgBox LCase(str1)
MsgBox CStr(306)
连接
str1 = "abCde"
str2 = "fghijklmn"
MsgBox str1 + str2