以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- 数组转换 (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=67183) |
-- 作者:qianqian1530 -- 发布时间:2015/4/20 3:41:00 -- 数组转换 怎么讲已经编辑好的 String 转换成 String() 呢? dim sd as string = "{""productID"",""ID"",""color"",""weight"",""productNum"",""productRemarks"",""ischeck"",""caseNo"",""leaderID""}" 把这个转换成 数组 Dim Cols1() As String = {"productID","ID","color","weight","productNum","productRemarks","ischeck","caseNo","leaderID"} |
-- 作者:lsy -- 发布时间:2015/4/20 6:37:00 -- Dim sd As String = "{""productID"",""ID"",""color"",""weight"",""productNum"",""productRemarks"",""ischeck"",""caseNo"",""leaderID""}" sd = sd.Replace("""","").Replace("{","").Replace("}","") Dim Cols1() As String = sd.Split(",")
|