以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  [求助]字符串能否根据特定字符直接转换为集合吗?  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=125907)

--  作者:2900819580
--  发布时间:2018/10/9 16:15:00
--  [求助]字符串能否根据特定字符直接转换为集合吗?
字符串能否根据特定字符直接转换为集合吗?

如 dim str as string = "123|456|789"

如何可以快速 将str 转换为集合


--  作者:y2287958
--  发布时间:2018/10/9 16:16:00
--  
Dim str As String = "123|456|789"
Dim lst As new List(of String)
lst.AddRange(str.Split("|"))