I have a large one dimensional array that is called ArrayHold which is populated at runtime. I run a loop to scan through the array to find out which elements need to be removed based on a few parameters. This all works great, now I am left with two arrays. The original one and a new one which contains the locations of the elements to be removed.
Original Array:
("A")("B")("C")("D")("E")("F")("G")("H") Second Array with index/count of elements that needs to be removed:
("0")("3")("5")("7") End result should be preferably not in a new array but a "ReDim" of the original array:
("B")("C")("E")("G") What would be the simplest way to achieve this? I could run a loop to make all the elements that need to be removed "0" or ""? Would there be an easy way of resizing and array by dropping/removing all the white space or empty elements?
Thanks so much in advance.. :)