Is there any difference in handling scripts?(user buttons vs Try Script)
Posted: 09 Nov 2026 03:46
I was experimenting and stumbled upon "strange difference": the script was running fine in Try Script window and same fine when loaded from a file - both with Step Mode and Syntax Checking enabled. But when i put that in a User Button, it led to constant crash = "Error 9. Subscript out of range.". And sometimes it was "Error 97. Cannot call friend function on object that is not an instance of defining class" = though there was no function inside. I even tried it in Fresh = same crash.
Sorry, can't provide the script to check - i got too irritated, concluded the approach is wrong and erased everything, to try other ways. Still i'd wish to understand what was that = maybe someone has some experience with these errors 9 / 97, and knows something about scripts "behaving different" in user buttons?..
Sorry, can't provide the script to check - i got too irritated, concluded the approach is wrong and erased everything, to try other ways. Still i'd wish to understand what was that = maybe someone has some experience with these errors 9 / 97, and knows something about scripts "behaving different" in user buttons?..