Sign in to follow this  
Followers 0
aquila

Getting error with an array

6 posts in this topic

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

Share this post


Link to post
Share on other sites



The line the script crashed on error is not possible in a compiled script.

You don't have to install AutoIt to run it. Just use the SFX self extracting archive.

Share this post


Link to post
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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

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... ^_^

Share this post


Link to post
Share on other sites

Yep :) Thanks guys.

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  
Followers 0