Jury Posted September 19, 2009 Share Posted September 19, 2009 This code always returns a $result of 10 which isn't correct is it? The third occurance starts at 44 doesn't it? Jury $result = StringInStr("How much wood could a woodchuck chuck is a woodchuck could chuck wood?", "wood", 0, 3) ; Find the 3rd occurance of "wood" MsgBox(0, "Search result:", $result) Link to comment Share on other sites More sharing options...
picaxe Posted September 19, 2009 Share Posted September 19, 2009 I get 44 Link to comment Share on other sites More sharing options...
somdcomputerguy Posted September 19, 2009 Share Posted September 19, 2009 I get 44 too - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
colafrysen Posted September 19, 2009 Share Posted September 19, 2009 (edited) Hmmm, something tells me you ran this from the helpfile and got 10 becase THIS returns 10 $result = StringInStr("I am a String", "RING") MsgBox(0, "Search result:", $result) but thats the first example in that example, the one you posted does actually give 44... Edited September 19, 2009 by colafrysen [font="Impact"]Use the helpfile, It´s one of the best exlusive features of Autoit.[/font]http://support.microsoft.com/kb/q555375ALIBI Run - a replacement for the windows run promptPC Controller - an application for controlling other PCs[size="1"]Science flies us to the moon. Religion flies us into buildings.[/size][size="1"]http://bit.ly/cAMPZV[/size] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now