InStrRev 函数:返回某一字符串从另一字符串的右侧开始算起第一次出现的位置。
格式:
Public Function InStrRevStringCheck
(
ByVal StringCheck As String,
ByVal StringMatch As String,
Optional ByVal Start As Integer = -1,
Optional ByVal Compare As CompareMethod = CompareMethod.Binary
)
As Integer
例子:
Dim mystring as string="the quick brown fox jumps over the lazy dog"
Dim mynumber as interger
mynumber=instrrev(mystring,"the") '返回32
mynumber=instrrev(mystring,"the",16) '返回1
博客介绍了InStrRev函数,该函数用于返回某一字符串从另一字符串右侧开始第一次出现的位置,并给出了函数格式和具体示例,如在字符串'the quick brown fox jumps over the lazy dog'中查找'the'的位置。
537

被折叠的 条评论
为什么被折叠?



