aquila Posted February 21, 2009 Share 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 Link to comment Share on other sites More sharing options...
jvanegmond Posted February 21, 2009 Share 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 Link to comment Share on other sites More sharing options...
isolation Posted February 21, 2009 Share 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 Link to comment Share on other sites More sharing options...
jvanegmond Posted February 21, 2009 Share 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 Link to comment Share on other sites More sharing options...
isolation Posted February 21, 2009 Share 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... Link to comment Share on other sites More sharing options...
aquila Posted February 21, 2009 Author Share Posted February 21, 2009 Yep Thanks guys. Link to comment Share on other sites More sharing options...
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