Jump to content

Recommended Posts

Posted

I have a script tha I made into a EXE that will work on my PC, but it errors on any other PC. I know where the problem is, but I have no idea on how to solve it. From what I can figure out, the error states that line 646 , lable_4 isn't being declared.

If StringLeft((GUICtrlRead($Label_4)), 2) = $count Then

In my script, it is declared on line 330.

??????

Posted

I have a script tha I made into a EXE that will work on my PC, but it errors on any other PC. I know where the problem is, but I have no idea on how to solve it. From what I can figure out, the error states that line 646 , lable_4 isn't being declared.

If StringLeft((GUICtrlRead($Label_4)), 2) = $count Then

In my script, it is declared on line 330.

??????

it's a scope issue. you're not giving it any extended scope, but using it in a function where it wasn't declared. you could just declare it as global, that should take care of it. If you're using beta you can declare it on the same line you're assigning the value to it the first time, but just adding global to the front of line 330.
Posted

I tried exactly what you suggested, and it didn't work. However, you were correct on the describing the problem. I added $Label_4 to line 30, and that fixed it. Thanks! :P

glad i could help

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...