Jump to content
Sign in to follow this  
Chris_1013

StringInStr / StringReplace

Recommended Posts

Chris_1013

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

Share this post


Link to post
Share on other sites
CyberSlug

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!

Share this post


Link to post
Share on other sites
jhbell

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.

Share this post


Link to post
Share on other sites
pekster

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.

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  

×