System.Classes.FindIdentToInt

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function FindIdentToInt(AIntegerType: Pointer): TIdentToInt;

C++

extern DELPHI_PACKAGE TIdentToInt __fastcall FindIdentToInt(void * AIntegerType);

Properties

Type Visibility Source Unit Parent
function public
System.Classes.pas
System.Classes.hpp
System.Classes System.Classes

Description

Returns the TIdentToInt conversion routine for a given data type.

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.

FindIdentToInt is called to return the TIdentToInt routine to be called to perform an Ident string to integer value 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 converion function.

See Also