JCL Help:JclTypedIntToStr

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Converts a Integer to a string.


Pascal

 function JclTypedIntToStr(Value: Integer; TypeInfo: PTypeInfo): string;


Parameters

Parameters Description
Value: Integer 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

A string representing the given value.


Description

JclTypedIntToStr converts an integer to a string. Besides the normal IntToStr, JclTypedIntToStr 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 resulting string may contain an identifier instead of a number. An example of a typed Integer is TCursor.


About

Unit

JclRTTI


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