Jump to content

Recommended Posts

Posted

I have a very large script and I found one of my global variables was declared twice but I didn't get any errors when compiling the script.  I have a test script here:

#AutoIt3Wrapper_Au3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 -w 7

Global $aArray1[7]
Global $aArray1[7] ; I don't get an error on this line!!
Global $aArray1[2] ; I don't get an error on this line!!

global $VAR1
global $VAR2
global $VAR1 ; I get an error on this line
global $VAR2 ; I get an error on this line

I get "already declared/assigned" errors on the duplicate $VAR1 and $VAR2 lines but not on the duplicate $aArray1 lines. 

Is there a way to have the duplicate $aArray1 lines flagged with an error?

 

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
×
×
  • Create New...