Jump to content
Sign in to follow this  
Israelks

Error: Subscript used on non-accessible variable

Recommended Posts

Hello, I've created a programm and it works well in my computer and some others, but in one specific computer I'm getting this error, someone can help me? thanks

 

 

Screenshot_1.png

Share this post


Link to post
Share on other sites

Could it be that the variables are declared in a way that there might be a problem?

Like global variables declared behind a conditional statement..

 

did you place error checking where external information is brought in?

maybe on that computer there is an error reading in information..

I am relatively new to autoit but those are my experiences with subscript used on non-accessible variable, I hope it helps!!

 

If the declaration is ok and retrieving info is error checked, could you elaborate a bit further on the issue/script?

Share this post


Link to post
Share on other sites

The variant you try to access is a variable not an array.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2020-09-05 - Version 1.5.1.1) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2020-06-27 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (NEW 2020-06-27 - Version 1.3.2.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
Task Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - Wiki

Tutorials:
ADO - Wiki, WebDriver - Wiki

 

Share this post


Link to post
Share on other sites

This often happens when a function returns an array on success but a string/undefined result in case of an error.
You need to check the return code or macro @error for an error and act accordingly.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2020-09-05 - Version 1.5.1.1) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2020-06-27 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (NEW 2020-06-27 - Version 1.3.2.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
Task Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - Wiki

Tutorials:
ADO - Wiki, WebDriver - Wiki

 

Share this post


Link to post
Share on other sites

I found the error, i was trying to access an array that does not exists, thanks everybody

Edited by Israelks

Share this post


Link to post
Share on other sites

The #Include files are scripts added to your script. Something in your code is causing an error further into the code of one of the other scripts.

You know, if you provided some code or a simplified version of your script, we could help a lot more.


RAID Calculator | Software Installer

The truth has been suppressed since the dawn of time.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...