25.01.2008, 17:10 | #1 |
Участник
|
Khue Trinh: Example of using a list
Источник: http://khue.spaces.live.com/Blog/cns...A0C2!396.entry
============== List can be used to store a list of elements and this type is quite portable for quick manipulation. You can either use ListEnumerator or ListIterator. These 2 classes are quite similar unless must use ListIterator if you want to delete an element in the list. static void STU_List(Args _args) { List lst; //list ListEnumerator lstEnum; //traverse through the elements in the list CustTable custTable; VendTable vendTable; Common common; int i; ; lst = new List(Types::Record); lstEnum = lst.getEnumerator(); lst.addEnd(CustTable::find("4000")); lst.addEnd(VendTable::find("3000")); lst.addStart(CustTable::find("4020")); info(lst.toString()); info(lst.definitionString()); info(lstEnum.toString()); info(lstEnum.definitionString()); lstEnum.reset(); lstEnum.moveNext(); //must move next to get to the first <font face="Courier New" size=2> for(i=0; i
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|