Length Function
Although Length
is most often used to learn the
length of a dynamic array, you can also call
Length
to find the length of an open array
parameter or even a static
array.
For an array, Length(A)
always returns
Ord(High(A))
-
Ord(Low(A))
+
1
. For a ShortString
, however,
Length
returns the value stored in the length
byte, which might be shorter than the string size.