- static void StringSplitter(Args _args)
- {
- TextBuffer buffer;
- str value;
- Counter cnt;
- int i = 1;
- value = "AA,BB,CCC,DDD,XXX";
- buffer = new TextBuffer();
- buffer.setText(value);
- while (buffer.nextToken(0, ','))
- {
- cnt++;
- if(cnt == i){
- info (strFmt("Print %1 : %2", i, buffer.token()));
- }
- i++;
- }
- }
Thank This Web : http://axhelper.blogspot.com/2014/03/split-string-value-by-using-saperatror.html
ไม่มีความคิดเห็น:
แสดงความคิดเห็น