Sly01 Posted January 9, 2024 Posted January 9, 2024 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?
Developers Jos Posted January 9, 2024 Developers Posted January 9, 2024 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.
Sly01 Posted January 9, 2024 Author Posted January 9, 2024 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
Sly01 Posted January 9, 2024 Author Posted January 9, 2024 (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, 2024 by Sly01
Sly01 Posted January 9, 2024 Author Posted January 9, 2024 (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, 2024 by Sly01
Solution Danp2 Posted January 9, 2024 Solution Posted January 9, 2024 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
Nine Posted January 9, 2024 Posted January 9, 2024 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) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
Sly01 Posted January 10, 2024 Author Posted January 10, 2024 It's an automated machine, I cannot run it within SciTE. But thanks for the Idea
Sly01 Posted January 12, 2024 Author Posted January 12, 2024 Solution was find by using au3stripper as per what Dan was mentioning above with Mergeonly 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