String.findlast() error

BlitzMax Forums/BlitzMax Programming/String.findlast() error

JoshK(Posted 2007) [#1]
I assume FindLast() does a search in reverse order? The method fails with these strings, depending on the position parameter:

stream:TStream=ReadFile("3DWorldStudio.log")

While Not stream.eof()
	s$:+stream.readline()
Wend

stream.close()

Print "Length="+s.length
Print  s.Find("Max",0)
Print  s.Find("Max",1200)
Print  s.FindLast("Max",1600)


3DWorldStudio.log:



JoshK(Posted 2007) [#2]
Oh I see, the index is reversed with FindLast().