public static void main(Args _args)
{
str no = "D0001-1.0";
ListIterator iterator;
List strlist=new List(Types::String);
str beforeDec,afterDec,finalOutput;
int x;
strlist=strSplit(no,"-");
iterator = new ListIterator(strlist);
while(iterator.more())
{
x= x+1;
if(x==1)
{
beforeDec =iterator.value();
}
if(x==2)
{
afterDec = iterator.value();
}
iterator.next();
}
Info(strFmt("%1,%2",beforeDec,afterDec));
}
................................................
No comments:
Post a Comment