你怎么清楚一个清单?

时间:2015-02-19 17:13:43

标签: lotusscript

我有一个我想重复使用的列表,但我无法弄清楚如何清除以前的条目。

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

1 个答案:

答案 0 :(得分:7)

Erase x ' delete whole list
Erase x(el) ' delete element