Sly01 Posted January 9 Share Posted January 9 Hi Everyone, My script is throwing an error "Line 9372 - Error: Subscript used on non-accessible variable" I've found a few examples of errors "Subscript used on non-accessible variable" seems I might have been doing a loop that has an empty value? My only concerns is that line 9372, the others are reporting a different line... Is it because AutoIT code has been recoded and uses different lines for every.exe created? Should I just worry about the "Error: Subscript used on non-accessible variable" which means one of my "For" is not working properly. If that's the case, I will make sure to only run For's when they my arrays exists or not Zero... Is this the right way? Link to comment Share on other sites More sharing options...
Developers Jos Posted January 9 Developers Share Posted January 9 1 hour ago, Sly01 said: Should I just worry about the "Error: Subscript used on non-accessible variable" which means one of my "For" is not working properly Yes... It obviously is an error. Show the script and we might be able to assist! 😉 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Sly01 Posted January 9 Author Share Posted January 9 1 hour ago, Jos said: Yes... It obviously is an error. Show the script and we might be able to assist! 😉 I re-wrote my code already that all for has a check before if there is an error already. Let's see if that fixes it Link to comment Share on other sites More sharing options...
Sly01 Posted January 9 Author Share Posted January 9 (edited) [Removed] Well the check I did, didn't work because I still got the error... If anyone want to look at that 😕 Edited January 12 by Sly01 Link to comment Share on other sites More sharing options...
Sly01 Posted January 9 Author Share Posted January 9 (edited) Still got the error but now it gives line 9390....... There is no way to find which line is that is there? Edited January 9 by Sly01 Link to comment Share on other sites More sharing options...
Solution Danp2 Posted January 9 Solution Share Posted January 9 Search the forum for the term "mergeonly" should reveal the answer to your questions. Here's a recent discussion that is similar -- Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Nine Posted January 9 Share Posted January 9 Run it inside Scite instead of compiled, Scite will tell you exactly what line is involved... “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Sly01 Posted January 10 Author Share Posted January 10 It's an automated machine, I cannot run it within SciTE. But thanks for the Idea Link to comment Share on other sites More sharing options...
Sly01 Posted January 12 Author Share Posted January 12 Solution was find by using au3stripper as per what Dan was mentioning above with Mergeonly options 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