Now you have an array ListArray that you want to cycle through, but you don't know how far to go. How do you know when you've reached the end?

The answer is the ubound function. ubound gives you the topmost array member of an array. In this case, the array has 10 words in it. Since arrays always start numbering at zero, this means array spots 0 through 9 are taken. If you do

ubound(ListArray)

the result is 9.

You can then easily do a loop through the members, operating on each one -

for loopctr = 0 to ubound(ListArray)
response.write ListArray(loopctr)
next