以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  集合  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=133026)

--  作者:qinjh18935180888
--  发布时间:2019/4/4 10:33:00
--  集合
老师:定义集合时:dim lst as new list(of string)   有时又出现  dim lst as  list(of string)  后边的没有 new 这有什么区别吗?
--  作者:有点甜
--  发布时间:2019/4/4 11:05:00
--  

如果有 lst = xxxxx,那就不需要new;如果没有,就要new。

 

也就是,lst没有被赋值,就必须new。

 

如果你理解不了,那就全部都new即可。


--  作者:qinjh18935180888
--  发布时间:2019/4/4 11:15:00
--  
谢甜老师