ratman 0 Posted December 29, 2009 Report Share Posted December 29, 2009 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. Quote Link to post Share on other sites
crazyflx 22 Posted December 29, 2009 Report Share Posted December 29, 2009 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... 1 Quote Link to post Share on other sites
ratman 0 Posted December 30, 2009 Author Report Share Posted December 30, 2009 Crazyfix, You were right. It wasn't finding the data to scrape. Thanks! Quote Link to post Share on other sites
crazyflx 22 Posted December 30, 2009 Report Share Posted December 30, 2009 Crazyfix, You were right. It wasn't finding the data to scrape. Thanks! No problem, glad to help Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.