tip 2 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] Share this post Link to post Share on other sites
JohnOne 1,603 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. Share this post Link to post Share on other sites
sleepydvdr 8 Posted May 16, 2011 Try declaring the variable globally near the beginning of the script (outside of the function). #include <ByteMe.au3> Share this post Link to post Share on other sites
PsaltyDS 39 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 Share this post Link to post Share on other sites