JCL Help:StrToIntSafe@string
From Project JEDI Wiki
Jump to navigationJump to searchJCL Help: StrToIntSafe Function
[+] JclStrings.pas Functions
Search in JCL Help
Search in all projects
Summary
The function StrToIntSafe attempts to convert the string passed as a parameter to its integer value.
Pascal
function StrToIntSafe(const S: string): Integer;
Parameters
Parameters | Description |
const S: string | String to be converted to integer value. |
Return Value
Integer value of the string S passed as a parameter. If error occurs, the function returns 0.
Description
The function StrToIntSafe attempts to convert the string passed as a parameter to its integer value. The function handles correctly national settings ofr thousand separator (see ThousandSeparator variable) as well as negative sign.
About
Unit
Donator
Azret Botash
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page