Jump to content
UBot Underground

Index out of range


Recommended Posts

Hi,

 

I know this error has been discussed previously, but I can't figure out a fix. I'm getting the error well before the list ends. It happens several times. Forgive my hatchet copy and paste job.

 

Error:

http://img22.imageshack.us/img22/5438/errorcn.gif

 

Script:

 

http://img199.imageshack.us/img199/7540/glitchp.jpg

 

 

Any ideas on how to fix this? Thanks.

Link to post
Share on other sites

There can only be one problem that I see in that coding, and that is that it occasionally isn't "scraping" a value, so when it goes to do this:

 

add to list %rows:

{1},{2} (2 being the value of the "next list item" from effective, which was added to the "effective" list after being scraped from the page)

 

There is no value for 2 (sometimes...if I'm right), so you get the error you've posted because it has nothing to add to the list for value {2}.

 

You can test that hypothesis of mine a number of ways:

 

Get rid of {2} and run the program and see if it throws the error.

 

Keep the {2} but add an "if" command like this:

 

If {2} = $nothing then add to list: {1}

 

If {2} NOT = $nothing then add to list: {1},{2}

 

And so on...

  • Like 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...