nobbi59 Active Member Licensed User Longtime User Jul 31, 2013 #1 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
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
NJDude Expert Licensed User Longtime User Jul 31, 2013 #2 You have to read the List and add the items to the ListView, read THIS Upvote 0
nobbi59 Active Member Licensed User Longtime User Jul 31, 2013 #3 thx for the answer But I dont understand, what you mean, so can you give me an example? thx for helping Upvote 0
thx for the answer But I dont understand, what you mean, so can you give me an example? thx for helping
NJDude Expert Licensed User Longtime User Jul 31, 2013 #4 You have an example on the link I posted, you read the List using GET. How big is your project? if you want, you can attach it here (on the IDE click on FILE -> Export as Zip) Upvote 0
You have an example on the link I posted, you read the List using GET. How big is your project? if you want, you can attach it here (on the IDE click on FILE -> Export as Zip)
nobbi59 Active Member Licensed User Longtime User Jul 31, 2013 #5 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
ill try to fix it, I dont want to post it because of the copyright, sorry When It doesnt work, ill contact you..
nobbi59 Active Member Licensed User Longtime User Aug 1, 2013 #6 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
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
nobbi59 Active Member Licensed User Longtime User Aug 1, 2013 #7 *sorry, mg is a string, not the text of a Edittext* Upvote 0
klaus Expert Licensed User Longtime User Aug 1, 2013 #8 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
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.
nobbi59 Active Member Licensed User Longtime User Aug 1, 2013 #9 Danke für deine Hilfe, Kann man Dateien in den DirInternal Ordner herunterladen? Upvote 0