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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.