RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Classes.FindIntToIdent Function

Returns the TIntToIdent conversion routine for a given data type.

Pascal
function FindIntToIdent(AIntegerType: Pointer): TIntToIdent;
C++
TIntToIdent FindIntToIdent(void * AIntegerType);

Classes

RegisterIntegerConsts is used internally within Delphi to define conversions between name-string and integer value pairs. For example, the Graphics unit uses this routine to register named colours, such as 'clMaroon', which is registered as integer value $000080. The conversion function is defined by type, TColor in this example.  

FindIntToIdent is called to return the TIntToIdent routine to be called to perform an integer value to Ident string conversion. You pass a data type in AIntegerType that identifies the conversion. For example, you would pass TypeInfo(TColor) if you wanted to be returned the Graphics unit registered TColor value conversion function. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!