Hi,
Because i'm using Linq in dotnet, I have problem with basic list in B4a....
Well, suppose I have a list like:
list.add("Item1") (so index = 0)
list.add("Item2") (so index = 1)
list.add("Item3") (so index = 2)
How to retrieve Index of list if I have only item name = "Item2" ?
If I want to retrieve name from list with index, I can set:
Dim a as object = list.get(0)
MyName = a.name
and then I can retrieve a.name for exemple
But If I have Name = "item1", How to retrieve lst.id ?
Hope my question is clear enough ....
Because i'm using Linq in dotnet, I have problem with basic list in B4a....
Well, suppose I have a list like:
list.add("Item1") (so index = 0)
list.add("Item2") (so index = 1)
list.add("Item3") (so index = 2)
How to retrieve Index of list if I have only item name = "Item2" ?
If I want to retrieve name from list with index, I can set:
Dim a as object = list.get(0)
MyName = a.name
and then I can retrieve a.name for exemple
But If I have Name = "item1", How to retrieve lst.id ?
Hope my question is clear enough ....