Posts

Showing posts from August, 2025

Collection classes X++, Maps , list

  Class Description Data types Access List Values stored sequentially with ability to add values at the beginning or end of the list All values must be the same data type Use  ListIterator  or  ListEnumerator Set Values stored non-sequentially. Duplicates are not added to the set. All values must be the same data type Use  SetIterator  or  SetEnumerator Map Values stored by using a unique key. The key and the value need not be from the same data type. Use  MapIterator  or  MapEnumerator Struct Values stored by using a unique string as a key The key must be a string. The values can be of any type. Provide the string key to the value method Set Class examples   Set coffeeReceiptSet = new Set(Types::String);   if(coffeeReceiptSet.in(weightView.BFSIndependentWeighID))   {       continue;   }   else   {       coffeeReceiptSet.add(weightView.BFSIndependentWeighID);   } Map c...