Jump to content

Set Variables to ""


Recommended Posts

  • Developers

Hello,

How can i set $1 - $10 to = "" in one line?

$1 = "" & $2 = "" is not working. please help

what 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

  • Moderators

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

  • Developers

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...