Working with dynamic arrays in Delphi
One advantage of Delphi’s dynamic arrays is that they are automatically freed once they go out of scope. That simplifies memory management and gives you more flexibility on your applications.
You can declare a dynamic array like this:
Customers: …
