Jump to content

StringInStr / StringReplace


Recommended Posts

Is there any reason why StringInStr and StringReplace have the casesense and occurance options different ways round?

i.e;

StringInStr ( "string", "substring" [, casesense [, occurance]] )
StringReplace ( "string", "searchstring", "replacestring" [, count [, casesense]] )

Only just something I've noticed, don't expect it to change as it's too far down the road now. :D

Link to comment
Share on other sites

Ack, my internet connection ate my post :D

What Jon said. Also, you could argue that the last optional paramter is less likely to be used than the paramter before it.

Some window functions list x,y followed by (optional) width,height while some other window functions list width,height followed by (optional x,y).

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Link to comment
Share on other sites

  • 1 month later...

Is there any reason why StringInStr and StringReplace have the casesense and occurance options different ways round?

i.e;

StringInStr ( "string", "substring" [, casesense [, occurance]] )
StringReplace ( "string", "searchstring", "replacestring" [, count [, casesense]] )

Only just something I've noticed, don't expect it to change as it's too far down the road now.  :ph34r:

Please help me out.. my documentation does not include occurance in StringinStr nor does my AutoIt accept 4 args. Please explain.
Link to comment
Share on other sites

Please help me out.. my documentation does not include occurance in StringinStr nor does my AutoIt accept 4 args.  Please explain.

What version are you using? You need the latest unstable build to use any functions that have been developed recently (such as additional commands, modifications to existing ones, and the GUI function calls.)

[font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes.

Link to comment
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
 Share

  • Recently Browsing   0 members

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