AX / D365FO – Split string into Array

I have a text that which contains comma separated values and I want to insert values into an array. You can use strSplit() method to do this public void splitString(str _splitString) { List strlist = new List(Types::String); ListIterator iterator; str _Value; strlist = strSplit(_splitString,”,”); iterator = new ListIterator(strlist); while(iterator.more()) { _Value = iterator.value(); iterator.next(); } … Continue reading AX / D365FO – Split string into Array

AX – D365FO – Collection classes in X++ #d365fo

Reference article : https://docs.microsoft.com/en-us/dynamicsax-2012/developer/collection-classes-in-microsoft-dynamics-ax The collection classes are shown in the following table. ClassDescriptionArraySimilar to the X++ language array type except that it can hold values of any single type, including objects and records. Objects are accessed in a specific order.For more information, see X++, C# Comparison: Array Syntax.ListContains elements that are accessed sequentially.Unlike the Array … Continue reading AX – D365FO – Collection classes in X++ #d365fo