I have a dynamic array. But initially I am not knowing the length of the array. Can I do like first I set the length of it as 1 and then increase length as I needed without lost of previously stored data?
I know I can do such task using TList. But I want to know whether I can do it with array or not?
I have a dynamic array. But initially I am not knowing the length of
Share
Dynamic Arrays can be resized to a larger size without losing the contained data.
The following program demonstrates this in action.