From Clomosy Docs

No edit summary
No edit summary
Line 29: 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:|description=Use the StrToInt function in Clomosy to convert string data into an integer, enabling arithmetic operations with ease.}}

Revision as of 10:41, 24 December 2024

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:

See Also