Показать сообщение отдельно
Старый 11.10.2012, 09:19   #6  
dech is offline
dech
Участник
Аватар для dech
Самостоятельные клиенты AX
 
650 / 352 (13) ++++++
Регистрация: 25.06.2009
Адрес: Омск
Записей в блоге: 3
Так а что помешало использовать класс Array? Берем и делаем!
X++:
static void ES_ArrayMapExample(Args _args)
{
    Array           a       = new Array(Types::String);
    Array           result  = new Array(Types::String);
    Map             map     = new Map(Types::Int64, Types::Class);
    MapEnumerator   me;
    int64 key;
    ;

    a.value(1, 'abc');
    a.value(2, 'def');
    a.value(3, 'jhi');
    map.insert(1, a);

    a.value(1, '3.0');
    a.value(2, '2.0');
    a.value(3, '1.0');
    map.insert(2, a);

    a.value(1, '+++');
    a.value(2, '???');
    a.value(3, '!!!');
    map.insert(3, a);

    me = map.getEnumerator();
    while (me.moveNext())
    {
        key = me.currentKey();
        result = me.currentValue();
        info(strfmt('%1;%2;%3;%4', key, result.value(1), result.value(2), result.value(3)));
    }
}
__________________
// no comments