Jump to content

Recommended Posts

Posted (edited)

hi all.

In the script i made, i get this error in a msgbox after compiled.

Line-1: Error:Array variable has incorrect number of subscripts or subscript dimension range exceeded

my script automate a website, and i have to store some key tables of the script.

is there any way to disable the msgbox and keep the script running after the error?

I searched the forum but i found nothing

Edited by Linux
You can help! Donate to AutoIt! or, visit ClimatePREDICTION.netMy posts:Travian Bot Example (100+ servers) BETAHow to Host you code/app for free! (unlimited team number) (Public or Private)"Sir, we're surrounded!" "Excellent. We can attack in any direction!"
Posted

did you have any Dim Local Global of a array without redim it or to low of a number for your array

Contact via MSN: [email=terarink_msn@hotmail.com]terarink_msn@hotmail.com[/email], yahoo: terarink_yah

Posted

thank you rasim, I will try to add that.

A bigger example of my code:

$array_temp = _StringBetween($Source, "img/un/a/del.gif", "</span></td></tr>")
                    If IsArray($array_temp) Then
                        ;save data to the slot
                        $TempArray = _StringBetween($array_temp[0], "<TD>", "</")
                        If IsArray($TempArray) Then
                            $TempArray[1] = StringTrimRight(StringRight($TempArray[1], 8), 3)
                            If Number(StringLeft($TempArray[1], 1)) = 0 Then $TempArray[1] = StringTrimLeft($TempArray[1], 1)
                            $TempArray[2] = StringRight($TempArray[2], 5)
You can help! Donate to AutoIt! or, visit ClimatePREDICTION.netMy posts:Travian Bot Example (100+ servers) BETAHow to Host you code/app for free! (unlimited team number) (Public or Private)"Sir, we're surrounded!" "Excellent. We can attack in any direction!"

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...