aquila Posted March 14, 2008 Share Posted March 14, 2008 Hello, How can i set $1 - $10 to = "" in one line? $1 = "" & $2 = "" is not working. please help Link to comment Share on other sites More sharing options...
Developers Jos Posted March 14, 2008 Developers Share Posted March 14, 2008 Hello,How can i set $1 - $10 to = "" in one line?$1 = "" & $2 = "" is not working. please helpwhat the purpose of wanting to do this in one line ? 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. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 14, 2008 Moderators Share Posted March 14, 2008 Global $1 = "", $2 = "", $3 = "" If that's not what you want, and you want to do something like basic syntax with semicolons, you can't do that. If that's not it, then I'd suggest re-thinking how others would read your post and be much much more specific. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
aquila Posted March 14, 2008 Author Share Posted March 14, 2008 Well i just want to make a reset button, where all vars will be = "", so i have got 100lines of ="" and this is a little bit lame. Is it possible with for and next? Link to comment Share on other sites More sharing options...
Developers Jos Posted March 14, 2008 Developers Share Posted March 14, 2008 Well i just want to make a reset button, where all vars will be = "", so i have got 100lines of ="" and this is a little bit lame. Is it possible with for and next?Just use an Array which can be reset with 3 lines whatever number of variables you need. 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. Link to comment Share on other sites More sharing options...
aquila Posted March 14, 2008 Author Share Posted March 14, 2008 Just use an Array which can be reset with 3 lines whatever number of variables you need.Can you give me an example ? Link to comment Share on other sites More sharing options...
Developers Jos Posted March 14, 2008 Developers Share Posted March 14, 2008 Dim $a[10] ; ; your code ; ; Reset array For $x = 0 to 9 $a[$x] = "" Next 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. Link to comment Share on other sites More sharing options...
aquila Posted March 14, 2008 Author Share Posted March 14, 2008 Dim $a[10] ; ; your code ; ; Reset array For $x = 0 to 9 $a[$x] = "" Next Well thx Working fine. 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