elbelli2013 Member Licensed User Longtime User Apr 17, 2014 #1 Hi, I like to known how I can retrieve a specific field from List Type Item (Nombre As String, Telefono As String ) Dim lst as List Dim it as Item it.Nombre="Aa" it.Telefono="123" lst.add(it) I would like to extract for example field "Telefono" from the list Suggestions? Last edited: Apr 17, 2014
Hi, I like to known how I can retrieve a specific field from List Type Item (Nombre As String, Telefono As String ) Dim lst as List Dim it as Item it.Nombre="Aa" it.Telefono="123" lst.add(it) I would like to extract for example field "Telefono" from the list Suggestions?
klaus Expert Licensed User Longtime User Apr 17, 2014 #2 B4X: Dim it As Item Dim Tel As String it = lst.Get(Index) Tel = it.Telefono Index is the index of the entry you want to get back. Upvote 0
B4X: Dim it As Item Dim Tel As String it = lst.Get(Index) Tel = it.Telefono Index is the index of the entry you want to get back.
LucaMs Expert Licensed User Longtime User Apr 17, 2014 #3 you can do it just by knowing the index or by scrolling through the list. If instead of a list if you were using a map, you could use "nombre" as the key and other data (Type) as the value. Upvote 0
you can do it just by knowing the index or by scrolling through the list. If instead of a list if you were using a map, you could use "nombre" as the key and other data (Type) as the value.
elbelli2013 Member Licensed User Longtime User Apr 17, 2014 #4 ok, thanks for your quick answer, I have stored two field into List. when I implement list.get(i) , retrieve: [Telefono=+542994221352, Nombre=Alfredo, IsInitialized=false] I need only the field Telefono to fill a ListView. You can Help me? thanks in advance Upvote 0
ok, thanks for your quick answer, I have stored two field into List. when I implement list.get(i) , retrieve: [Telefono=+542994221352, Nombre=Alfredo, IsInitialized=false] I need only the field Telefono to fill a ListView. You can Help me? thanks in advance
DonManfred Expert Licensed User Longtime User Apr 17, 2014 #5 See post #2 from Klaus... B4X: Dim it As Item Dim Tel As String it = list.Get(i) Tel = it.Telefono Upvote 0
elbelli2013 Member Licensed User Longtime User Apr 17, 2014 #7 uooo, This work Perfect!!! thanks a lot Klaus and DonManfred Upvote 0