Jump to content
Sign in to follow this  
Linux

Disable error msgbox and exit

Recommended Posts

Linux

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!"

Share this post


Link to post
Share on other sites
TerarinKerowyn

What script is it? usually the $variable[<number wrong here>] is it


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

Share this post


Link to post
Share on other sites
TerarinKerowyn

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

Share this post


Link to post
Share on other sites
Richard Robertson

If there is an error then you are doing something wrong. Before you try to access a value, make sure the value exists and is accessible.

Share this post


Link to post
Share on other sites
Linux

$TempArray = _StringBetween($array_temp[0], "<TD>", "</")
                        If IsArray($TempArray) Then


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!"

Share this post


Link to post
Share on other sites
TerarinKerowyn

What is the $array_temp[0] Dim as? Does it exist or any values given to it?


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

Share this post


Link to post
Share on other sites
Linux

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!"

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  

×