Jump to content

Recommended Posts

Posted

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?

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
Posted

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...