Тема: mapIterator.end()
Показать сообщение отдельно
Старый 20.05.2008, 12:49   #1  
PODOL is offline
PODOL
Участник
 
44 / 16 (1) ++
Регистрация: 20.07.2006
mapIterator.end()
help по методу mapIterator.end() :
Description
Moves the iterator past the last element in the map.
Syntax
public void end()
Remarks
After executing this function more() will return FALSE.
X++:
static void PO_MapIterator(Args _args)
{
    MapIterator    mapIterator;
    Map map = new Map(Types::Integer, Types::String);
    ;

    map.insert(1, 'one');
    map.insert(2, 'two');
    map.insert(3, 'three');
    mapIterator = new mapIterator(map);
    mapIterator.end();
    if (mapIterator.more())
    {
        info('mapIterator.more() return TRUE');
    }
}
Это бага...это фича...что это, кто знает?