Marius Posted June 25, 2005 Posted June 25, 2005 Hello all! I have one interesting question... Let's say I have variable $var. And now I need that AutoIt check if there's any " in variable and if there's then before them add /". So result should be /"" Is it possible to do it? Marius back in da hood! :)
Marius Posted June 25, 2005 Author Posted June 25, 2005 sorry... wrong forum. Maybe any mod could put this in right forum? Marius back in da hood! :)
Developers Jos Posted June 25, 2005 Developers Posted June 25, 2005 sorry... wrong forum. Maybe any mod could put this in right forum?<{POST_SNAPBACK}>why ? this is the support forum so is the right place.To answer your question: check the helpfile for the StringReplace() command... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Marius Posted June 25, 2005 Author Posted June 25, 2005 it's already been moved Marius back in da hood! :)
Marius Posted June 25, 2005 Author Posted June 25, 2005 what I need to write for stringreplace to search for " ? Because stringreplace won't recognize " as text. Marius back in da hood! :)
Developers Jos Posted June 25, 2005 Developers Posted June 25, 2005 (edited) what I need to write for stringreplace to search for " ?Because stringreplace won't recognize " as text. <{POST_SNAPBACK}>Something like ?:StringReplace($var,'"','/""') Edited June 25, 2005 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Marius Posted June 25, 2005 Author Posted June 25, 2005 YES! It works! I didn't even knew, that I can use ' instead of " Thank You. Marius back in da hood! :)
Developers Jos Posted June 25, 2005 Developers Posted June 25, 2005 YES! It works! I didn't even knew, that I can use ' instead of "Thank You.<{POST_SNAPBACK}>this works as well:StringReplace($var,"""","/""""") SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Marius Posted June 25, 2005 Author Posted June 25, 2005 ok. now a bigger one: ;--------- $super = 0 For i=1 to 5 If GUICtrlRead($additional1) <> "" $super = $super + 1 EndIf Next ;--------- I want that "for" used $additional1, then $additional2, $additional3 and so on. I can't use: If GUICtrlRead($additional & $i) What should I do? Marius back in da hood! :)
Valuater Posted June 25, 2005 Posted June 25, 2005 like this... For $i=1 to 5 If GUICtrlRead($additiona[$i]) <> "" $super = $super + 1 EndIf Next you may need to add " dim $additiona[6] " to the beginning of the script enjoy 8)
Marius Posted June 25, 2005 Author Posted June 25, 2005 (edited) Tried but no effect. It shows me that $super is 0 Edited June 25, 2005 by Marius Marius back in da hood! :)
therks Posted June 25, 2005 Posted June 25, 2005 For $i=1 to 5 If GUICtrlRead(Eval('additional' & $i)) <> "" $super = $super + 1 EndIf Next My AutoIt Stuff | My Github
Marius Posted June 25, 2005 Author Posted June 25, 2005 Whow!!! This one works. Thanks Topic can be closed Marius back in da hood! :)
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