darknode 3 Posted October 20, 2013 Report Share Posted October 20, 2013 erroryou have exceeded the range of the list add list to list(%time, $list from file("{$special folder("My Documents")}\\time.txt"), "Delete", "Global") set(#time1, $list item(%time, 0), "Global") set(#time2, $list item(%time, 1), "Global") set(#time3, $list item(%time, 2), "Global") set(#time4, $list item(%time, 3), "Global") set(#time5, $list item(%time, 4), "Global") set(#time6, $list item(%time, 5), "Global") set(#time7, $list item(%time, 6), "Global") set(#time8, $list item(%time, 7), "Global") set(#time9, $list item(%time, 8), "Global") set(#time10, $list item(%time, 9), "Global") add list to list(%time, $list from file("{$special folder("My Documents")}\\d.txt"), "Delete", "Global") set(#d1, $list item(%d, 0), "Global") set(#d2, $list item(%d, 1), "Global") set(#d3, $list item(%d, 2), "Global") set(#d4, $list item(%d, 3), "Global") set(#d5, $list item(%d, 4), "Global") set(#d6, $list item(%d, 5), "Global") set(#d7, $list item(%d, 6), "Global") set(#d8, $list item(%d, 7), "Global") set(#d9, $list item(%d, 8), "Global") set(#d10, $list item(%d, 9), "Global") add list to list(%time, $list from file("{$special folder("My Documents")}\\url.txt"), "Delete", "Global") set(#url1, $list item(%url, 0), "Global") set(#url2, $list item(%url, 1), "Global") set(#url3, $list item(%url, 2), "Global") set(#url4, $list item(%url, 3), "Global") set(#url5, $list item(%url, 4), "Global") set(#url6, $list item(%url, 5), "Global") set(#url7, $list item(%url, 6), "Global") set(#url8, $list item(%url, 7), "Global") set(#url9, $list item(%url, 8), "Global") set(#url10, $list item(%url, 9), "Global") Quote Link to post Share on other sites
darknode 3 Posted October 20, 2013 Author Report Share Posted October 20, 2013 (edited) bleh saw the problem but now there's another problem Edited October 20, 2013 by darknode Quote Link to post Share on other sites
darknode 3 Posted October 20, 2013 Author Report Share Posted October 20, 2013 well now i see another problem. add list to list(%time, $list from file("{$special folder("My Documents")}\\time.txt"), "Delete", "Global") set(#time1, $list item(%time, 0), "Global") set(#time2, $list item(%time, 1), "Global") set(#time3, $list item(%time, 2), "Global") set(#time4, $list item(%time, 3), "Global") set(#time5, $list item(%time, 4), "Global") set(#time6, $list item(%time, 5), "Global") set(#time7, $list item(%time, 6), "Global") set(#time8, $list item(%time, 7), "Global") set(#time9, $list item(%time, 8), "Global") set(#time10, $list item(%time, 9), "Global") add list to list(%d, $list from file("{$special folder("My Documents")}\\d.txt"), "Delete", "Global") set(#d1, $list item(%d, 0), "Global") set(#d2, $list item(%d, 1), "Global") set(#d3, $list item(%d, 2), "Global") set(#d4, $list item(%d, 3), "Global") set(#d5, $list item(%d, 4), "Global") set(#d6, $list item(%d, 5), "Global") set(#d7, $list item(%d, 6), "Global") set(#d8, $list item(%d, 7), "Global") set(#d9, $list item(%d, 8), "Global") set(#d10, $list item(%d, 9), "Global") add list to list(%url, $list from file("{$special folder("My Documents")}\\url.txt"), "Delete", "Global") set(#url1, $list item(%url, 0), "Global") set(#url2, $list item(%url, 1), "Global") set(#url3, $list item(%url, 2), "Global") set(#url4, $list item(%url, 3), "Global") set(#url5, $list item(%url, 4), "Global") set(#url6, $list item(%url, 5), "Global") set(#url7, $list item(%url, 6), "Global") set(#url8, $list item(%url, 7), "Global") set(#url9, $list item(%url, 8), "Global") set(#url10, $list item(%url, 9), "Global") load html("<table align=\"center\" border=\"1\" cellpadding=\"0\" cellspacing=\"5\" style=\"width: 800px;\"> <tbody> <tr> <td> {#time1}</td> <td> {#d1}</td> <td> <a href="{#url1}">{#url1}</a></td> </tr> <tr> <td> {#time2}</td> <td> {#d2}</td> <td> <a href="{#url2}">{#url2}</a></td> </tr> <tr> <td> {#time3}</td> <td> {#d3}</td> <td> <a href="{#url3}">{#url3}</a></td> </tr> <tr> <td> {#time4}</td> <td> {#d4}</td> <td> <a href="{#url4}">{#url4}</a> </td> </tr> <tr> <td> {#time5}</td> <td> {#d5}</td> <td> <a href="{#url5}">{#url5}</a></td> </tr> <tr> <td> {#time6}</td> <td> {#d6}</td> <td> <a href="{#url6}">{#url6}</a></td> </tr> <tr> <td> {#time7}</td> <td> {#d7}</td> <td> <a href="{#url7}">{#url7}</a></td> </tr> <tr> <td> {#time8}</td> <td> {#d8}</td> <td> <a href="{#url8}">{#url8}</a></td> </tr> <tr> <td> {#time9}</td> <td> {#d9}</td> <td> <a href="{#url9}">{#url9}</a></td> </tr> <tr> <td> {#time10}</td> <td> {#d10}</td> <td> <a href="{#url10}">{#url10}</a></td> </tr> </tbody> </table> ") it won't allow me to return to node view or run the script because it's detecting an error in the html and wants me to fix it.i checked my code, and everything looks right.confused. Quote Link to post Share on other sites
darknode 3 Posted October 20, 2013 Author Report Share Posted October 20, 2013 it works if i don't go into the code view, but if i do, i'm stuck there.I think this may be a bug. Quote Link to post Share on other sites
k1lv9h 76 Posted October 20, 2013 Report Share Posted October 20, 2013 Hi, Once I fixed the html code to be ubot friendly the code worked fine. Sample code:darknode-list-001.ubot changed <a href="{#url1}">{#url1}</a> to this <a href=\"{#url1}\">{#url1}</a>The above code is only 1. The other 9 would also need to be changed. I added a tab to create the html code using a loop. Kevin 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.