Wish Cast IterableList -> List

LucaMs

Expert
Licensed User
Longtime User
I have tried:

B4X:
Sub getList As List
    Return mapX.Keys
End Sub

but Keys are defined as IterableList and can not be cast to List :(
 

LucaMs

Expert
Licensed User
Longtime User
You can create a sub that goes over the items and adds them to a list.


Like this:
B4X:
Public Sub getFieldsNames As List
    Dim lst As List : lst.Initialize
    For Each K As String In mMap.Keys
        lst.Add(K)
    Next
    Return lst
End Sub

(Sorry, Erel, I knew it ;))
 
Top