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);



		_Value = iterator.value();;


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s