Skip to content

Length ​

Length returns the number of characters in the given string S.

All characters in the string are counted, including any special characters such as spaces.

Declaration: function Length(S: string): Integer;

Example

pascal
procedure OnMapEvent(var Value:Variant);
begin
 //Returns 62
  Value := Length('Now another day is breaking, Sleep was sweet and so is waking.');
end;