Jump to content

Strict variable declaration option?


avery
 Share

Recommended Posts

I used to write lots of stuff in Perl/TK and always used a module called 'Strict' that would force you to initialize a variable first and automatically made it local to the scope it was used in.

Maybe AutoIt already does this, I'm still learning a lot daily.

As I use AutoIt more and more, any help would be appreciated.

www.abox.orgAvery HowellVisit My AutoIt Websitehttp://www.abox.org
Link to comment
Share on other sites

I used to write lots of stuff in Perl/TK and always used a module called 'Strict' that would force you to initialize a variable first and automatically made it local to the scope it was used in.

Maybe AutoIt already does this, I'm still learning a lot daily.

As I use AutoIt more and more, any help would be appreciated.

If you want to be forced to declare a variable use this:

Opt("MustDeclareVars", 0)       ;0=no, 1=require pre-declare
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...