static void ListSample(Args _args)
{
List list = new List(Types::Integer);
Enumerator en ;
;
list.addEnd(333333); // add the value at last
list.addEnd(111111);
list.addEnd(222222);
en = list.getEnumerator();
print list.elements(); //"print number of element"
while (en.moveNext())
{
print en.current(); //display each element of the list
}
print list.toString(); // list : <333333, 111111, 222222>
print list.definitionString(); // defintion of the list for example : List of Int
pause;
}
Links :
http://msdn.microsoft.com/en-us/library/aa498818.aspxHappy Daxing!
what if I want to get the value in the first position of the list and store it in another variable?
RépondreSupprimer