以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  定义集合什么时候要new  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=67758)

--  作者:sky2015
--  发布时间:2015/4/30 22:34:00
--  定义集合什么时候要new
Dim Names As New List(Of String)
Dim bjs As List(Of String) = DataTables("成绩表").GetValues("班级","[班级] Is Not NULL")

什么时候要用new ,什么时候不用

--  作者:zyqzyy
--  发布时间:2015/4/30 23:14:00
--  
新建时用New, 同一集合要更改成员时不用。