aquila Posted February 21, 2009 Posted February 21, 2009 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
jvanegmond Posted February 21, 2009 Posted February 21, 2009 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. github.com/jvanegmond
isolation Posted February 21, 2009 Posted February 21, 2009 @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
jvanegmond Posted February 21, 2009 Posted February 21, 2009 @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 runHelp file:@ScriptLineNumberLine 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. github.com/jvanegmond
isolation Posted February 21, 2009 Posted February 21, 2009 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...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now