avery Posted August 22, 2008 Share Posted August 22, 2008 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 More sharing options...
Szhlopp Posted August 22, 2008 Share Posted August 22, 2008 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 RegEx/RegExRep Tester!Nerd Olympics - Community App!Login UDFMemory UDF - "Game.exe+753EC" - CE pointer to AU3Password Manager W/ SourceDataFiler - Include files in your au3!--- Was I helpful? Click the little green '+' Link to comment Share on other sites More sharing options...
avery Posted August 22, 2008 Author Share Posted August 22, 2008 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 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