how can I make it so that there is a list, called list1, with a number of items. The number of items varies. How can I make it so that I can erase all the items on a list1 from top to bottom. Here is the code I have got, but there is an error (see below):

b = list1.listcount
starting:
list1.removeitem(b)
if b=0 then goto ending
b=b-1
goto starting
ending:

it says that b is not compatible (ByRef Type Mismatch.) How could I do this?