我有一个我想重复使用的列表,但我无法弄清楚如何清除以前的条目。
dim x list as string, i as integer
for i = 1 to 4
x("a"+cstr(i)) = "blue"+cstr(i)
x("b" +cstr(i)) = "green"+cstr(i)
<do some stuff>
<Before I loop back around, I want to clear 'x' so it does not contain the previous entries>
next
答案 0 :(得分:7)
Erase x ' delete whole list
Erase x(el) ' delete element