String.findlast() error

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

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:
Initializing 3D World Studio...
Initializing engine...
Leadwerks Engine Version 1.0.2
OpenGL Version 2.0.3
OpenGL Vendor: NVIDIA Corporation
OpenGL Render Device: GeForce 7800 GS/AGP/SSE2
CPU Vendor: GenuineIntel
CPU Name: Intel(R) Pentium(R) 4 CPU 2.53GHz
CPU Speed: 2532 MHz
Max texture size: 4096
Max cubemap size: 4096
Max texture units: 4
Max shader texture units: 16
Max multisample: 16
Max anisotropy: 16
Max clip planes: 6
Max lights: 8
Shadows supported: 1
Shaders supported: 1
Loading Plugins...
[Error]: Failed to open directory "C:\Projects\3DWorldStudio6\Plugins".
[Error]: Failed to load plugins from "C:\Projects\3DWorldStudio6/Plugins/".
Loading materials...
[Error]: Failed to load materials from "C:\Projects\3DWorldStudio6/Materials/".
[Error]: Failed to load materials from "C:\Projects\3DWorldStudio6/Meshes/".
Loading meshes...
[Error]: Failed to load meshes from "C:\Projects\3DWorldStudio6/Meshes/".
Loading sounds...
[Error]: Failed to load sounds from "C:\Projects\3DWorldStudio6/Sound/".
Sorting media...
[Error]: Missing texture group "dev"
[Error]: Missing texture "dev\skybox"
Loading shader program "default"...
Loading vertex shader "C:\Projects\3DWorldStudio6/Shaders/default.vert"...
[Error]: Failed to load shader source "C:\Projects\3DWorldStudio6/Shaders/default.vert".
[Error]: Failed to load shader.
[Error]: Missing texture "sfx\gradient3"
Initializing OpenAL...
EAX supported.
OpenAL initialized successfully.
Initializing physics...
Newton version 1.53
Physics initialized successfully.
Engine initialized successfully
[Error]: Failed to load scene "scripts/coronas.script".
Starting main loop...
Saving settings...
Stopping engine...
Stopping physics...
End
Exiting program...


Oh I see, the index is reversed with FindLast().