MapIterator.more Method [AX 2012]
Determines whether the iterator finds a valid (key, value) pair.
The following example iterates through a map, by using the more method to check if there are still elements in the map. It then returns a description of all the elements in the map.
static str writeMap (Map m)
{
MapIterator it = new MapIterator(m);
str result;
while (it.more())
{
result += it.key() + '\n' + it.value() + '\n';
it.next();
}
return result;
}
Community Additions
ADD
Show: