Code: Select all
Txt := "123.123456"
Pos := InStr(Txt, "." , false , -1)
msgbox %Pos% ; returns 4
Pos := InStr(Txt, "." , false , 1)
msgbox %Pos% ; returns 4 too.
Code: Select all
Txt := "123.123456"
Pos := InStr(Txt, "." , false , -1)
msgbox %Pos% ; returns 4
Pos := InStr(Txt, "." , false , 1)
msgbox %Pos% ; returns 4 too.
Regardless of the value of StartingPos, the return value is always relative to the first character of Haystack.