Jason wrote:

What is the best method to remove a variable from a dynamic array?

 

I need to delete an variable, but not always the last one, maybe one from the middle?

Move the current last item to the place you want to delete and then SetLength down by 1.

 

TTFN,

  Paul.

Reply via email to