Put a List an a Listview

nobbi59

Active Member
Licensed User
Longtime User
Hello guys,

My Problem is that i have a list on an ftp server and i want to download the list and put it into a listview.

Downloading works fine but I cant put it in the listview...

Thx for help
 
thx for the answer

But I dont understand, what you mean, so can you give me an example?

thx for helping
 
Upvote 0
ill try to fix it, I dont want to post it because of the copyright, sorry

When It doesnt work, ill contact you..
 
Upvote 0
So, I couldnt fix it, here´s my code:

Code: Copy
sonstigelist = File.ReadList(File.DirInternal, "suche" & mg & ".txt")
         For i = 1 To sonstigelist.Size -1
         listview12.AddSingleLine(sonstigelist.Get(i))
         Next
         Activity.RemoveAllViews
         Activity.LoadLayout("sonstigepersonen")

mg = Text of a Edittext

sonstigelist = List
listview12 = Listview
 
Upvote 0
This line
Code: Copy
For i = 1 To sonstigelist.Size -1
should be
Code: Copy
For i = 0 To sonstigelist.Size -1
The first index is 0.
Or do you want to skip the first item ?

Where is listview12 defined ?
If listview12 is defined in a previous layout you remove it with Activity.RemoveAllViews and listview12 doesn't exist anymore.
If listview12 is defined in "sonstigepersonen" then you must fill it after having loaded the layout.

Best regards.
 
Upvote 0
Danke für deine Hilfe,

Kann man Dateien in den DirInternal Ordner herunterladen?
 
Upvote 0
Back
Top