有个字符串
ls_data = '594,595,596,597,'
怎么拆解为 去掉,的单个字符??
ls_data =' 594' ,'595' ,'596'
------解决方案--------------------
string ls_data, ls_item[]
ls_data = '594,595,596,597,'
long ll_pos
ll_pos = pos(ls_data, ',')
do while ll_pos > 0
ls_item[upperbound(ls_item) + 1] = mid(ls_data, ll_pos - 1)
ls_data = mid(ls_data, ll_pos + 1)
ll_pos = pos(ls_data, ',')
loop
ls_item[upperbound(ls_item) + 1] = ls_data
ls_item这个数组里就是你要的