Need help - storing data in memory

ThePuiu

Active Member
Licensed User
Longtime User
I need to read from the database a number of dozens of pairs numbers and names. They need to be keep in memory and have the possibility to quickly check if the number that calls me is in the list or not. What is the best way to do this? I'm only interested in storing the data structure and its completion/scanning.

Thank you!
 

stevel05

Expert
Licensed User
Longtime User
I would think that Map would do what you're looking for. You can use
B4X:
MyMap.GetDefault(Key,"Not Found")
to quickly test if the number is in the map.
 
Upvote 0
Top