Lana
Nov 12th, 1999, 10:54 AM
What is the simplest way to remove an element from an array?
So far, the best solution I have found is to use a dynamic array; then, swap the used element, with the last element of the array, and redim the array to one less upper bound (effectively destroying that last, already used element). Is there a more elegant solution?
So far, the best solution I have found is to use a dynamic array; then, swap the used element, with the last element of the array, and redim the array to one less upper bound (effectively destroying that last, already used element). Is there a more elegant solution?