Wish Show in quick info window that Map.GetKeyAt and GetValueAt are deprecated

raphaelcno

Active Member
Licensed User
When a map is used, I suggest to show in the quick info window that GetKeyAt and GetValueAt methods are deprecated, and that For Each loop or B4XOrderedMap should be used instead:

1589831614848.png


Edit after post #3: For Each loop
 
Last edited:

thetahsk

Active Member
Licensed User

raphaelcno

Active Member
Licensed User
Yes, you're right, the For Each loop should be used instead:

B4X:
For Each key As String In Map1.Keys
    Dim value As String = Map1.Get(key)
Next

I have edited post #1.
 
Last edited:
Top