以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  数组处理  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=81383)

--  作者:凡夫俗子
--  发布时间:2016/2/26 13:49:00
--  数组处理
Dim s1() As String
s1 = New String() {"中国","美国","日本","俄罗斯AA"}

如何快速直接的移除 S1数组的第一个值“中国”得到一个新的数组 S1.

--  作者:大红袍
--  发布时间:2016/2/26 14:10:00
--  

用数组麻烦,建议直接用集合

 

http://www.foxtable.com/help/topics/0217.htm

 


--  作者:大红袍
--  发布时间:2016/2/26 14:11:00
--  

或者取出的时候,判断一下

 

Dim s1() As String
s1 = New String() {"中国","美国","日本","俄罗斯AA"}

s1(0) = Nothing

For Each s As String In s1
    If s <> Nothing Then
        output.show(s)
    End If
next