P persianpowerman1 Active Member Licensed User Longtime User Oct 22, 2013 #1 guys... i need to be able to get efficiently 2 things done. few values(say 10) from a List need to be transferred to a ListView on an Activity and then at the end... a set of say 10 values from The Listview... has to be transfered to a List best logical coding option?? Yohan
guys... i need to be able to get efficiently 2 things done. few values(say 10) from a List need to be transferred to a ListView on an Activity and then at the end... a set of say 10 values from The Listview... has to be transfered to a List best logical coding option?? Yohan
Erel B4X founder Staff member Licensed User Longtime User Oct 23, 2013 #2 Code: Copy For i = 0 To 9 ListView1.AddSingleLine(List1.Get(i)) Next Upvote 0
P persianpowerman1 Active Member Licensed User Longtime User Oct 23, 2013 #3 yes.. true.. thats what i finally did... the REASON im doing this is because i want to check if a particular string exists in one of the items of the listview... that's because unlike List or Spinner ... Listview doesn't have an IndexOf method. .. right? is there anyway else i could check for a string value in a Lisview.. besides a regular Loop.. like how IndexOf can be done for the others? ? Upvote 0
yes.. true.. thats what i finally did... the REASON im doing this is because i want to check if a particular string exists in one of the items of the listview... that's because unlike List or Spinner ... Listview doesn't have an IndexOf method. .. right? is there anyway else i could check for a string value in a Lisview.. besides a regular Loop.. like how IndexOf can be done for the others? ?
Erel B4X founder Staff member Licensed User Longtime User Oct 23, 2013 #4 How are you adding the items to the ListView? You can also add the items to a List and then search the list instead of ListView. Upvote 0
How are you adding the items to the ListView? You can also add the items to a List and then search the list instead of ListView.