Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic Arrays

Status
Not open for further replies.

jojo11

Programmer
Feb 2, 2003
189
US
Can you delete an item from the middle of a dynamic array and ten resize?

Thanks

-------------------------------------------
When you have spent all day trying to work through a problem, it is best to take a step back, reevaluate the problem, then work on the next project and never let the old one show its ugly face again!!
 
Take the last element in the array and copy it to the place where the element should be removed.
Then use
Redim Preserve myArray(Ubound(MyArray)-1)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top