Jump to content
Sign in to follow this  
Akton

Using StringInStr ?

Recommended Posts

Akton

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
bwochinski

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
Akton

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.