Jump to content

Error: array variable has incorrect number of subscripts or subscript dimension range exceeded


Recommended Posts

Ok, so I found where the problem is. When running the .au3 script, there are actually more parameters.

I used _ArrayDisplay() method to see what's stored in $CmdLine.

Here's for the .au3:

Spoiler

script.PNG

And here's for the .exe:

Spoiler

exe.PNG

At the beginning of my script, I have these 2 variables:

Local $hWnd = "MyApp " & $CmdLine[2] &" Setup"
Local $installer = "myapp-win-installer-" & $CmdLine[2] &".msi"

For the script, they are ok, but for the .exe, they aren't anymore.

Edited by mihaijulien
Link to comment
Share on other sites

  • Developers
On 6-7-2017 at 1:34 PM, Jos said:

 ...  and no, it is not per se strange that it works uncompiled and erros compiled when the issue is around commandline parameters as with the uncompiled version, there always are parameters supplied to run the script.

That is what I explained yesterday with this post! ;) 

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

×
×
  • Create New...