Ontosy Posted October 30, 2015 Share Posted October 30, 2015 I have script a.au3:if IsDeclared("vv")==0 Then Global Const $vv = "any" Endifscript b.au3:#include "a.au3" $vv="any2"Au3Check.exe b.au3 report:error: $vv previously declared as a 'Const'. But IMHO it is not an error because the declaration is under condition. Link to comment Share on other sites More sharing options...
Developers Jos Posted October 30, 2015 Developers Share Posted October 30, 2015 Au3check in not aware of If logic and simply detects 2 scripts doing a global declaration of $w, hence the reported error/warning.Jos 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 More sharing options...
Ontosy Posted October 30, 2015 Author Share Posted October 30, 2015 IMHO Au3check should know of if logic hence not report error/warning.The script work fine. Link to comment Share on other sites More sharing options...
Developers Jos Posted October 30, 2015 Developers Share Posted October 30, 2015 ..and that is fine that you think it should be, but it doesn't whether you like it or not. Jos 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 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