Edano Posted August 2, 2013 Posted August 2, 2013 (edited) Au3Check understands Assign, it just doesn't understand what is being assigned, and there's a lot of times that it would be impossible for it to understand what is being assigned to what. As an example... For $I = 1 to 10 Assign("Dog" & $I, 12 + $I) Next If you were to try and refer to the variable $Dog3, au3check would throw an undeclared variable error, because it can't know what "Dog" & $i equals at runtime. Obviously, AutoIt will understand what $Dog3 is because you've assigned it previously. It's the same logic as (for example) FileInstall and using anything other than a literal path and/or filename on the left side of the function, because at compile time the variable doesn't mean anything to the compiler. . yes that makes sense. thank you for the explanation. so, for autoit, the syntax is correct, that's why it runs without error when i doubleclick my au3 file (run without check) ? E. Edited August 2, 2013 by Edano [color=rgb(255,0,0);][font="'comic sans ms', cursive;"]FukuLeaks[/color][/font]
kylomas Posted August 2, 2013 Posted August 2, 2013 bobh, If you have been following this thread I think you get the gist. Let me offer you these suggestions (as The Saint alluded to): 1 - Define what you are trying to do as explicitly as possible 2 - Show what you've tried so far (as you did in the OP) I think you'll find that as your "project" takes form it is nothing like you envisioned when you started. kylomas Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill
bobh Posted August 7, 2013 Author Posted August 7, 2013 Thanks for the comments. What's happening now makes sense! Now I know that it's "Au3Check" that's really requiring the predefined variable because it cannot possibly understand what I'm doing with "Assign". Since I don't want to shut "Au3Check" off, I'll have to live with it. Thanks for straightening me out.
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