以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  数组。加入新元素。  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=97721)

--  作者:jncoser
--  发布时间:2017/3/17 11:41:00
--  数组。加入新元素。
Dim bts As String() = lbts.Value.Split(",")

可以直接向数组加入新元素吗?

bts.add ?

现在我用。。
Dim btss As new List (Of String) 
btss.AddRange(bts)
再btss.Add

--  作者:有点色
--  发布时间:2017/3/17 11:59:00
--  

不能,数组是定长的,动态数组也有,不过麻烦。

 

还是集合好用。