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 20: | Line 20: | ||
} | } | ||
</pre> | </pre> | ||
| Line 44: | Line 29: | ||
<h2> See Also </h2> | <h2> See Also </h2> | ||
* [[System_Library#Type_Conversion_Functions | Type Conversion Functions]] | * [[System_Library#Type_Conversion_Functions | Type Conversion Functions]] | ||
{{#seo:|title=StrToInt Using in Clomsy - Clomosy Docs}} | |||
{{#seo:|description=Use the StrToInt function in Clomosy to convert string data into an integer, enabling arithmetic operations with ease.}} | |||
Latest revision as of 14:36, 24 December 2024
function StrToInt(const S: string):Integer;
The StrToInt, it converts a string data (S) to an integer value.
Example
var
firstNumber,secondNumber,result : Integer;
{
firstNumber = StrToInt('100');
secondNumber = StrToInt('200');
result = firstNumber + secondNumber;
ShowMessage('Result : '+IntToStr(result));
}
Output:
Result : 300