-
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?
-
This is the only way I have done it. But if you want an exercise you could write your on class which could contain this type of coding but do it behind the scenes as you implement methods such as add, insert, delete,...
------------------
Brad
-