AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
DAX
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 13.12.2007, 22:30   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
axaptapedia: Array (Foundation class)
Источник: http://www.axaptapedia.com/Array_%28Foundation_class%29
==============

Summary: Added tips
'''Array (Foundation class)''' function the same way as ordinary [[array]]s, the main difference being thata [[table buffer]]s and [[object]]s can be used as contents.

The array is created with a [[Types|type]] that defines what contents the array contains. It can not use Types::Anytype!

==Example==
array a = new array(Types::string);

a.value(1, "First");
a.value(2, "Second");
a.value(3, "Third");

print a.lastIndex();
print a.toString();

pause;

==Tips==
When inserting the array is dynamicly expanded. If you just want to add an element to the end of the array it is possible to use:


a.value(a.lastIndex()+1, "element");

If a [[container]] is needed use the pack method:

c = a.pack();



==Methods==
* definitionString
* exists
* lastIndex
* pack
* toString
* typeId


Источник: http://www.axaptapedia.com/Array_%28Foundation_class%29
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
axaptapedia: RunBaseBatch Blog bot DAX Blogs 0 04.04.2009 22:05
axaptapedia: RunBaseBatch Blog bot DAX Blogs 0 31.03.2009 06:06
axaptapedia: Image class Blog bot DAX Blogs 0 22.07.2008 15:05
axaptapedia: Set (Foundation class) Blog bot DAX Blogs 0 24.04.2008 20:19
Говорят вышел SP2 для Axapta 3. Кто нибуть что знает на эту тему? soin DAX: Прочие вопросы 10 13.10.2003 10:43

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 11:15.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.