Android Question how to manage multi-selection in inputmapAsync

MroBurk

Member
Licensed User
Hi, I need to copy only the selected item (as string) and paste it in label... How Can I Manage the item with only "true" valued ?

Thanks !!!


B4X:
Dim m As Map = CreateMap("Item #1": False, "Item #2": False, "Item #3": False)
    InputMapAsync(m, "Select items", True)
    Wait For InputMap_Result
 

MroBurk

Member
Licensed User
Thank you Erel!!

[CODE lang="b4x" title="to manage "Item" of InputMapAsync"]private sub Label1_Click
Dim m As Map = CreateMap("Item #1": True, "Item #2": True, "Item #3": False)
InputMapAsync(m, "Select items", True)
Wait For InputMap_Result
For Each Key As String In m.Keys
Dim Checked As Object = m.Get(Key)
If Checked Then
Log(Key)
Label1.Text = Key

End If
Next
End Sub
[/CODE]
 
Upvote 0
Top