Returns the number of characters in a string or elements in an array.
Unit
System
Category
string handling routines
function Length(S): Integer;
Description
Length returns the number of characters actually used in the string or the number of elements in the array.
For single-byte and multibyte strings, Length returns the number of bytes used by the string. For Unicode (WideString) strings, Length returns the number of bytes divided by two.