截取字符串

string ls_all,ls_1,ls_2,ls_3
ls_all = "ls_1;ls_2;ls_3"
 
ls_1 = mid(ls_all,1,pos(ls_all,';') -1)
ls_3 = right(ls_all,pos(reverse(ls_all),';') -1)
ls_2 = mid(ls_all, pos(ls_all,';')+1, len(ls_all) -len(ls1) -len(ls_3)-2)

 

posted @ 2014-05-10 09:47  木子_lishk  阅读(100)  评论(0编辑  收藏  举报