static void PSMSplitstr2(Args _args)
{
//mendapatkan '000002' dari str paramAsStr.
str paramAsStr = "PSM22-000002";
List paramAsList;
ListEnumerator le;
int i = 0;
str getnumber;
paramAsList = strSplit(paramAsStr, "-");
le = paramAsList.getEnumerator();
while(le.moveNext())
{
if(i==1)
{
getnumber = le.current();
info(getnumber);
}
i++;
}
}
from
https://www.schweda.net/blog_ax.php?bid=628&wdl=en
Tidak ada komentar:
Posting Komentar