Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

mustdeclarevars help

$
0
0

Hi All,

 

I'm trying to assure that all my AutoIt programs have their variables declared.  Adding the line

 

Opt("MustDeclareVars", 2)

 

at the start of each program accomplishes this, but I'd like to add it to my user properties file to eliminate this step.  I've tried opening that file from within SciTE (the file is empty), adding that line, and saving it.  However the program:

 

$var = 1

 

continues to compile without any errors/warnings.  I also tried adding the line autoitsetoptions("mustdeclarevars",2), but was met with the same result.  Can someone assist?  Perhaps I'm using incorrect syntax, or not pointing to the proper user properties file.

 

Thanks in advance.

 

 

 


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>