From Clomosy Docs
No edit summary |
ClomosyAdmin (talk | contribs) No edit summary |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 6: | Line 6: | ||
<b>Example</b><br> | <b>Example</b><br> | ||
<pre> | <pre> | ||
var | var | ||
| Line 16: | Line 16: | ||
} | } | ||
</pre> | </pre> | ||
| Line 37: | Line 25: | ||
<h2> See Also </h2> | <h2> See Also </h2> | ||
* [[System_Library#String_Functions | String Functions]] | * [[System_Library#String_Functions | String Functions]] | ||
{{#seo:|title=Length Using in Clomosy - Clomosy Docs}} | |||
{{#seo:|description=Use the Length function in Clomosy to get the number of characters in a string.}} | |||
Latest revision as of 14:21, 24 December 2024
function Length(S: String): Integer;
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:
Length of valueStr = 7