The old shell game. Use a temporary array of the same type.
1. redim the temp array to the size of the original array.
2. Place all values from the original array into the temp array.
3. redim the original array to one element less than it was before.
4. Place all values from the temp array back to the original array EXCEPT the one you want to remove.
When working with a strings or 1D arrays using the Split, Join, Filter, and Replace functions make things much easier....
In this case, using the Filter function is very simple and fast, needing only one line of code!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.