tip Posted May 16, 2011 Share Posted May 16, 2011 (edited) Hi to all, When calling following function autoit gives an strange error.: Func _ShowActiveDownloads($i_AD_RestartRequested = False) If $i_AD_RestartRequested = False Then MsgBox(64,"","Restart not requested") Error is: C:\FileLocation\File.au3 (6) : ==> Variable used without being declared.: If $i_AD_RestartRequested = False Then MsgBox(64,"","Restart not requested") If ^ ERROR Other functions with same structure works fine and this one is the only func that gives such an error. I couldn't figure out why. Thanks in advance. Regards Tip Edited May 16, 2011 by tip [center]MsgBox_Tipped: Eye candy msgboxes/inputboxes/loginboxes. | CreateBlankBox: Semi-transparent layers with borders and rounded corners.[/center] Link to comment Share on other sites More sharing options...
JohnOne Posted May 16, 2011 Share Posted May 16, 2011 Works fine for me. Ghost maybe, try a reboot. 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...
sleepydvdr Posted May 16, 2011 Share Posted May 16, 2011 Try declaring the variable globally near the beginning of the script (outside of the function). #include <ByteMe.au3> Link to comment Share on other sites More sharing options...
PsaltyDS Posted May 17, 2011 Share Posted May 17, 2011 Post a short demo script that can actually be run to see the issue. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law 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