VB中字符串函数包含: mid、instr、InStrRev、left、right、ucase、lcase、trim、string
space、strconv、len、ltrim、rtirm、split()、join()、srereverse、replaceFilterMonthName
Format、LSet、RSet、FormatCurrency、FormatDateTime、FormatNumber
FormatPercent、StrComp、StrConv、StrReverse、WeekdayName、Option Compare
一、基础字符串函数部分(必须要掌握)
1,len函数返回 Long,其中包含字符串内字符的数目,或是存储一变量所需的字节数。
2,Left函数返回 Variant (String),其中包含字符串中从左边算起指定数量的字符
3,Right函数返回 Variant (String),其中包含从字符串右边取出的指定数量的字符
4,Mid函数返回 Variant (String),其中包含字符串中指定数量的字符。
5,LTrim、RTrim与 Trim 函数
返回 Variant (String),其中包含指定字符串的拷贝,没有前导空白 (LTrim)、尾随空白 (RTrim) 或前导和尾随空白 (Trim)。