retrieve map index

stefanoa

Active Member
Licensed User
Longtime User
there is a way to retrieve the index of a map ?
i need to browse next/previous element of a map.

If use filesMap.GetKeyAt(i) i retrieve correctly the key or with filesMap.GetValueAt(i) i retrieve the value but then if i need to move to the NEXT or to the PREVIOUS element? how can in do?

:sign0085: thanks
 

mc73

Well-Known Member
Licensed User
Longtime User
Perhaps I don't understand very well but if you know 'i', you can simply use i+1 and i-1 for next and previous respectively. Of course you should return an 'error' at the boundaries of the map.
 
Upvote 0
Top