aquila Posted March 14, 2008 Posted March 14, 2008 Hello, How can i set $1 - $10 to = "" in one line? $1 = "" & $2 = "" is not working. please help
Developers Jos Posted March 14, 2008 Developers 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.
Moderators SmOke_N Posted March 14, 2008 Moderators 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.
aquila Posted March 14, 2008 Author 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?
Developers Jos Posted March 14, 2008 Developers 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.
aquila Posted March 14, 2008 Author 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 ?
Developers Jos Posted March 14, 2008 Developers 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.
aquila Posted March 14, 2008 Author Posted March 14, 2008 Dim $a[10] ; ; your code ; ; Reset array For $x = 0 to 9 $a[$x] = "" Next Well thx Working fine.
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