From Clomosy Docs

Revision as of 08:40, 28 February 2023 by ClomosyManager (talk | contribs) (Created page with " function Length(const SourceString string):Integer; The length function returns the element count of the number of characters in the SourceString. It is often used to loop around all the characters in a string. '''Example:'''<br> '''var''' valueStr : string;<br> '''begin'''<br> valueStr := 'Clomosy'; ShowMessage('Length of valueStr = '+IntToStr(Length(valueStr)));<br> '''end;''' '''Output:'''<br> Length of valueStr = 7")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

function Length(const SourceString string):Integer;

The length function returns the element count of the number of characters in the SourceString. It is often used to loop around all the characters in a string.

Example:

var
  valueStr    : string;
begin
valueStr := 'Clomosy'; ShowMessage('Length of valueStr = '+IntToStr(Length(valueStr)));
end;

Output:

Length of valueStr = 7