Thank you, I did that in my program for array "Matrix" and did not make that mistake.
SetLength(Matrix, NoOfCols, NoOfRows);
Since the function returns the contents of array "Matrix", does the function also somehow need to be treated with setlength ?
I dont think so, but I rather ask.
I tested the contents of the array "Matrix" and it contains all the values.
It is just that when I assign it to the function that the data is not transferred to the function.
So, all I can think of is that the function also needs to be SetLength, however doubtful, it does make sense as everything else works except the transfer from Matrix to the function.