Akton Posted March 21, 2011 Posted March 21, 2011 When using StringInStr I need to specify a "start" value, but never use "casesense" and "occurrence", it says they are optional but how to I tell autoit3 they are not there but "start" is?
bwochinski Posted March 21, 2011 Posted March 21, 2011 (edited) Looking in the help you can find the default values for them, and just set them to the defaults when you call the function. The 2 lines below do the same thing. So just change the 5th parameter in the second one to your desired start value. $out = StringInStr("string", "substring") $out = StringInStr("string", "substring", 0, 1, 1) Edited March 21, 2011 by bwochinski
Akton Posted March 21, 2011 Author Posted March 21, 2011 Looking in the help you can find the default values for them, and just set them to the defaults when you call the function. The 2 lines below do the same thing. So just change the 5th parameter in the second one to your desired start value. $out = StringInStr("string", "substring") $out = StringInStr("string", "substring", 0, 1, 1) I did look in the help, but didn't get it. Thanks for your explanation
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