Is there a function to determine length of a dynamic array in Delphi ?
Use Length
function to get the length of your array:
var
ArrayLength: Integer;
begin
ArrayLength := Length(ArrayOfSomething);
...
end;
From the reference for this function (emphasized by me):
In Delphi code, Length returns the number of characters actually used in the string or the number of elements in the array.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With