Map & monkey
Monkey Forums/Monkey Programming/Map & monkey
| ||
Can anyone explain me what I'm doing wrong here? I believe I understood that I cannot use a 'standard' Map but I need to implements my own; otherwise I should use StringMap, IntMap or FloatMap already implemented. I get an item stored by key-value, now I simply want ALL the keys (or all the Values) stored in map1. Thank you everyone! |
| ||
Map has a Keys method that returns an enumerator for all the keys in the Map, and Values for all the values. I haven't tried it, but this looks like what you need. i.e. something like: For Local it:= Eachin map1.Keys() print it Next |
| ||
Ahhh! Ok thanks! I'm stupid like an ameaba! I've read Map.Keys like MapKeys.... ok stop for today!!! |
| ||
I didnt know how to do this either, Samah showed me... I was trying stuff with the ObjectEnumerator - this stuff needs examples in the docs on how to use it! |