Android Question Get field from List

elbelli2013

Member
Licensed User
Longtime User
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:

elbelli2013

Member
Licensed User
Longtime User
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

DonManfred

Expert
Licensed User
Longtime User
See post #2 from Klaus...

B4X:
Dim it As Item
Dim Tel As String
it = list.Get(i)
Tel = it.Telefono
 
Upvote 0
Top