petr4ppc Well-Known Member Licensed User Longtime User Aug 28, 2014 #1 Dear friends, please for advice. I have combobox with some items (10 names) I add data to combobox with this code: B4X: listofnames.Items.Add(name.Get("name")) pleas, how can I order the names in combobox? Anetta Boris Chris etc.. ? Thank you very much p4ppc
Dear friends, please for advice. I have combobox with some items (10 names) I add data to combobox with this code: B4X: listofnames.Items.Add(name.Get("name")) pleas, how can I order the names in combobox? Anetta Boris Chris etc.. ? Thank you very much p4ppc
klaus Expert Licensed User Longtime User Aug 28, 2014 #2 What type is name in name.Get("name") ? I suppose that it's a Map. Can't you use a list instead of the Map, then you can sort the list. Upvote 0
What type is name in name.Get("name") ? I suppose that it's a Map. Can't you use a list instead of the Map, then you can sort the list.
petr4ppc Well-Known Member Licensed User Longtime User Aug 28, 2014 #3 Klaus, thank you for your advice. Yes, the type is: MAP So, my solution is not good for sorting, yes? Thank you very much p4ppc Upvote 0
Klaus, thank you for your advice. Yes, the type is: MAP So, my solution is not good for sorting, yes? Thank you very much p4ppc
klaus Expert Licensed User Longtime User Aug 29, 2014 #4 Map doesn't have a sort method included, a List has a sort method ! Upvote 0