Jump to content
UBot Underground

Add to local List Problem


Guest cooper

Recommended Posts

Guest cooper

My Problem: I have a txt-File, where I store some Data separated by newline. For instance:

-------

Name1

Name2

Name3

-------

 

So I want to put this Information into a list specified by "add to local list" function.

 

If I used the function "list_item" at the Position "1" I get an error, which says, that I am out of the list range.

This occurs, if all the three Names are stored in the first line of the list.

 

I expect to get the following result:

  1. Position[1] == Name2

 

Can anyone help me? What do I do wrong? If you need more Info, just say, I will check this topic instantly :-)

Link to post
Share on other sites

My Problem: I have a txt-File, where I store some Data separated by newline. For instance:

-------

Name1

Name2

Name3

-------

 

So I want to put this Information into a list specified by "add to local list" function.

 

If I used the function "list_item" at the Position "1" I get an error, which says, that I am out of the list range.

This occurs, if all the three Names are stored in the first line of the list.

 

I expect to get the following result:

  1. Position[1] == Name2

 

Can anyone help me? What do I do wrong? If you need more Info, just say, I will check this topic instantly :-)

 

 

Start the list at 0

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