Jump to content

Recommended Posts

Posted

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

Posted

@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

Posted

@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.

Posted

Sorry

this is right:

msgbox(0,"",currentline)

or

Consolewrite(currentline)

The sript will be like this

_func1($a,$:)

msgbox(0,"",1)

_func2($c)

msgbox(0,"",2)

... :)

You should use the SFX... ^_^

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
  • Recently Browsing   0 members

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