I created an HTA that when a button is pressed it creates an array with some numbers. Then it passes it to another function to sort the numbers in order. I have everything on that working. However, when the user clicks the button again it loops and keeps the old data. So, if I have an array with 100 elements it gets increased to 200. Is there anyway to set unset an array if it has a value already?