web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :

StrSplit in ax 2012

I AM AX PANKAJ Profile Picture I AM AX PANKAJ 419

static void StrSplit(Args _args)
{
str test = 'SO-000493/VIN12345678987657';
List _list = new List(Types::String);
container packedList;
ListIterator iterator;
int i;

_list = Global::strSplit(test,"/");
iterator = new ListIterator(_list);

while(iterator.more())
{
packedList += iterator.value();
iterator.next();
}

if(conLen(packedList)>0)
{
for(i=1;i<=conLen(packedList);i=i+2)
{
info(conPeek(packedList,i));
info(conPeek(packedList,i+1));
}
}

}

Comments

*This post is locked for comments