From Clomosy Docs

No edit summary
No edit summary
Line 6: Line 6:


<b>Example</b><br>
<b>Example</b><br>
<b>TRObject Syntax</b><br>
 
<pre>
<pre>
var
var
Line 16: Line 16:


}
}
</pre>
<b>Base Syntax</b><br>
<pre>
var
valueStr    : string;
begin
valueStr := 'Clomosy';
ShowMessage('Length of valueStr = '+IntToStr(Length(valueStr)));
end;
</pre>
</pre>



Revision as of 12:06, 13 November 2024

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

Example

var
 valueStr    : string;
{

 valueStr = 'Clomosy';
 ShowMessage('Length of valueStr = '+IntToStr(Length(valueStr)));

}

Output:

See Also