0

私は配列を持っています。それをループして値を表示します。表示されたら、その特定のノードを削除して、配列のサイズを縮小したいと考えています。

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

助けてください。

4

1 に答える 1