In other words I would like something like Length(dinarray) to return the length in bytes of the array.
I need this to use it with BlockRead. I did something like this, but it seems that it doesn't work.
var maparray: array of array of byte;
procedure TForm1.Button3Click(Sender: TObject);
var resd : integer;
setlength(maparray, 20, 15);
resd := length(maparray) * length(maparray) * sizeof(maparray);
I use BlockRead this way:
BlockRead(F, maparray, Length(maparray) * Length(maparray) * sizeof(maparray));
thanks in advance,