Sign in to follow this  
Followers 0
Akton

Using StringInStr ?

3 posts in this topic

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?

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by bwochinski

Share this post


Link to post
Share on other sites

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 :)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0