JohnOne Posted February 22, 2010 Share Posted February 22, 2010 (edited) Never written a script large enough where I though I migh need them, but decided to try anyway. But it appers I dont understand them enough. Main script #include 'MyInclude.au3' Global $var = "variable" _MsgBox() Include Func _MsgBox() MsgBox(0,"",$var) EndFunc It turns out A global var from main script does not carry across includes, which is the opposite of what I thought. I know I can put everything in one .au3, but Im just curious as to the reason I get warnings about undeclared variables. If anyone has the time to explain I'd appreciate it. Edited February 22, 2010 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
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
Already have an account? Sign in here.Sign In Now