StringEdit中分行加入到Grid中显示
----------------------------------------------------------------------------------
void clicked()
{
List listnum;
str dels;
listEnumerator lisww ;
;
dels = strReplace(editname.valueStr(),"\r\n"," ");
info(dels);
dels = strLRTrim(dels);
info(dels);
listnum = strsplit(dels," ");
info(listnum.toString());
lisww = listnum.getEnumerator();
while(lisww.moveNext())//添加到Table中
{
info(lisww.current());
}
}
posted on 2014-04-24 22:28 Kobe.Zhang 阅读(119) 评论(0) 编辑 收藏 举报