ThePuiu Active Member Licensed User Longtime User May 31, 2013 #1 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!
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 May 31, 2013 #2 I would think that Map would do what you're looking for. You can use Code: Copy MyMap.GetDefault(Key,"Not Found") to quickly test if the number is in the map. Upvote 0
I would think that Map would do what you're looking for. You can use Code: Copy MyMap.GetDefault(Key,"Not Found") to quickly test if the number is in the map.