Sign in to follow this  
Followers 0
avery

Strict variable declaration option?

3 posts in this topic

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

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

Opt("MustDeclareVars", 0)       ;0=no, 1=require pre-declare
Thanks. And wow is my code broken now. I have some cleaning up to do I guess.

www.abox.orgAvery HowellVisit My AutoIt Websitehttp://www.abox.org

Share this post


Link to post
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
Sign in to follow this  
Followers 0