7,763
社区成员
发帖
与我相关
我的任务
分享
dim list as new Collection,i as interger
for i=0 to 6000
list.add(i)
next
private container() as byte
public property Get PContainer() as byte()
PContainer=container
end property
public sub Add(byref data() as byte)
'增加的方法,这里增加的是数组
end sub
public sub Remove(byval startIndex as integer,byval count as integer)
'删除的方法,在删除方法中我需要从container数组中删除某些元素,所以我想这样做:假如删除从第一个元素开始到第10个元素,
dim temp() as byte,i as integer
redim temp(ubound(container)-count)
for i=0 to ubound(container)
if i>startindex and i<startindex+count then
'说明这些数据应该删除
else
'这些数据要保留
end if
next
end sub