|
13.12.2007, 22:30 | #1 |
Участник
|
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, напишите личное сообщение администратору. |
|