InStrRev:
The InStrRev Function returns the first occurrence of one string within another string. The Search happens from right to Left.
Syntax:
InStrRev(string1,string2[,start[,compare]])
Example:
str = "abcdeabcde"
MsgBox InStrrev(str, "e") ' search from end, , will return 10
InStr:
The InStr Function returns the first occurrence of one string within another string. The search happens from left to right.
Syntax:
InStr([start,]string1,string2[,compare])
Example:
str = "abcdeabcde"
MsgBox InStr(str, "e") ' search from start, will return 5
The InStrRev Function returns the first occurrence of one string within another string. The Search happens from right to Left.
Syntax:
InStrRev(string1,string2[,start[,compare]])
Example:
str = "abcdeabcde"
MsgBox InStrrev(str, "e") ' search from end, , will return 10
InStr:
The InStr Function returns the first occurrence of one string within another string. The search happens from left to right.
Syntax:
InStr([start,]string1,string2[,compare])
Example:
str = "abcdeabcde"
MsgBox InStr(str, "e") ' search from start, will return 5
No comments:
Post a Comment
Note: only a member of this blog may post a comment.