Chris_1013 0 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. Share this post Link to post Share on other sites
Jon 1,009 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/ Share this post Link to post Share on other sites
CyberSlug 6 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! Share this post Link to post Share on other sites
jhbell 0 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. Share this post Link to post Share on other sites
pekster 0 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. Share this post Link to post Share on other sites