Jump to content
UBot Underground

[ERROR] you have exceeded the range of the list


Recommended Posts

error

you 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")
Link to post
Share on other sites

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.

Link to post
Share on other sites

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

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