Chris_1013 Posted June 3, 2004 Share Posted June 3, 2004 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. Link to comment Share on other sites More sharing options...
Administrators Jon Posted June 3, 2004 Administrators Share Posted June 3, 2004 occurance was only just added, and you can't change the order as it breaks any old scripts that were using the case sense option. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
CyberSlug Posted June 3, 2004 Share Posted June 3, 2004 Ack, my internet connection ate my post 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 More sharing options...
jhbell Posted July 14, 2004 Share Posted July 14, 2004 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. 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 More sharing options...
pekster Posted July 14, 2004 Share Posted July 14, 2004 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now