JCL Help:JclStrToTypedInt
From Project JEDI Wiki
Jump to navigationJump to searchJCL Help: JclStrToTypedInt Function
Search in JCL Help
Search in all projects
Summary
Converts a string to an integer.
Pascal
function JclStrToTypedInt(Value: string; TypeInfo: PTypeInfo): Integer;
Parameters
Parameters | Description |
Value: string | Value to convert |
TypeInfo: PTypeInfo | Pointer to the RTTI for the integer type. This pointer can be obtained through a call to System.TypeInfo(type) or JclGenerateSubRange. |
Return Value
The Integer value the string represents.
Description
JclStrToTypedInt converts a string to an integer. Besides the normal StrToInt, JclStrToTypedInt will first check if a conversion function for the integer type exists (ie. if RegisterIntegerConsts is called for the type). If such a function exists the string may also contain identifiers. An example of a typed Integer is TCursor.
About
Unit
Donator
Marcel Bestebroer
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