I have the following code:
how can I get "Taskuri" Map values for a given "key" value?
Thank you!
B4X:
Type ZiLucru(key as Int, Data As Long, ListaEchipe As Map)
Dim Taskuri As Map
....................
Dim mcal As Map = CreateMap("POPESCU":1,"IONESCU":2)
Dim mcal1 As Map = CreateMap("MARINESCU":3,"PANTEA":3)
Dim jobs As ZiLucru
jobs.Initialize
jobs.key = 1
jobs.Data = DateUtils.SetDate(2019,4,1)
jobs.ListaEchipe.Initialize
jobs.ListaEchipe = mcal
jobs.Initialize
jobs.key = 2
jobs.Data = DateUtils.SetDate(2019,4,2)
jobs.ListaEchipe.Initialize
jobs.ListaEchipe = mcal1
Taskuri.Initialize
Taskuri.Put(mcal, jobs.Data)
Taskuri.Put(mcal1, jobs.Data)
how can I get "Taskuri" Map values for a given "key" value?
Thank you!