我有一个数组。我遍历它并显示值。显示后,我想删除该特定节点以减小数组大小。
例子
tot = 20
redim values(tot)
for i=1 to 20
values(i) = i
next
for i=1 to ubound(values)
if values(i) = 10 then
' i do my work here.
' After my work is done, i want to remove the node values(10)
' so that the ubound of my array changes to 19 and not 20
' when i loop through next time.
end if
next
请帮忙。