I'm trying to make a procedure that copies a dynamic array in another but after running the procedure destination array is still the sam. How can i make it so when quiting the procedure the content of array will be the good one.
Here is the procedure i use:
Procedure RebuildFilesArray(OldFiles: array of TFiles; NrFiles:Integer);
var NewFiles: array of TFiles;
for I := 0 to NrFiles-1 do
if (OldFiles[i].Url<>'') and (OldFiles[i].Title<>'') then
for I := 0 to nr_new - 1 do
here is the code that i want to give to the new array
After running the procedure baza[index].Files will have the same content as before.