Hi!
Just found out out that you can use string.find() as a kind of replacement for Instr.
1.
Has anyone done speed test with that already. Is find() any faster?
2.
Is it possible to add a starting position for a search with find too?
I really have a lot of Instr() usage in my 8000 lines app.
But before I replace Instr(), I'd like to be sure about this.
Grisu
Just found out out that you can use string.find() as a kind of replacement for Instr.
1.
Has anyone done speed test with that already. Is find() any faster?
2.
Is it possible to add a starting position for a search with find too?
I really have a lot of Instr() usage in my 8000 lines app.
But before I replace Instr(), I'd like to be sure about this.
Local s:String="This is a Test string..." Print "Find result: "+s.Find("Test") Print "Instr result: "+Instr(s,"Test")
Grisu