Jump to content

Getting error with an array


aquila
 Share

Recommended Posts

Hello,

I get this: "Array variable has incorrect number of subscripts...". Okay, I know that error of course but the problem is, I use my script on a computer where I don't have AutoIt and i don't want to install it there. So I can't run it in Scite where I can see in which line it crashs. Now my question, is there a way to get the Line and the variable :)?

aquila

Link to comment
Share on other sites

@ScriptLineNumber i think

"Array variable has incorrect number of subscripts..." is a "fatal error" so you must write for every line of code a msgbox(0,"",@ScriptLineNumber)

or a consolewrite because with a fatal error OnExitFunc doesn't run

Help file:

@ScriptLineNumber

Line number currently being executed. Useful for debug statements specially when a function is call you can pass the caller line number. (Not significant in compiled script)

Basically means it doesn't work.

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...