Jump to content
Sign in to follow this  
tip

Strange Error with a standart simple func call

Recommended Posts

tip

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 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
sleepydvdr

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

Post a short demo script that can actually be run to see the issue.

:unsure:


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

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

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×