日期:2014-05-17  浏览次数:21311 次

字符串截取问题
^D0380,500,4,2233,0,0,0,2202,0,,0,2218,0,,0 我要截取 没两个 ,, 之间的字符 怎么截取?

------解决方案--------------------
楼主参考下
http://www.w3school.com.cn/vbscript/func_split.asp
------解决方案--------------------
Dim str, aStr, i

str = "D0380,500,4,2233,0,0,0,2202,0,,0,2218,0,,0"
aStr = Split(str, ",,")

For i = 0 To UBound(aStr)
Response.Write(aStr(i))
Next
------解决方案--------------------
C# code
String[] strs=yourStr.Split(',');

------解决方案--------------------
楼主的问题重复了。
http://topic.csdn.net/u/20120604/15/4958ffea-74db-480f-8038-8126eafee2be.html?1927