in this string, all is working, it returns 32.
Sub kingama()
Dim TESTNUMBER As Integer
Dim TESTSTRING As String
TESTSTRING = "the quick brown fox jumps over the lazy dog"
TESTNUMBER = InStrRev(TESTSTRING, "the")
MsgBox TESTNUMBER
End Sub
but when i run this:
Sub TESTING()
Dim TESTNUMBER As Integer
Dim TESTSTRING As String
TESTSTRING = "08/10000AF"
TESTNUMBER = InStrRev(TESTSTRING, "/")
MsgBox TESTNUMBER
End Sub
this string SHOULD return 8 right? but it doesnt, it returns a value of 3. Why is that so? i find it very unususual and i cannot find a solution to this!
Bookmarks