System.Classes.UnregisterIntegerConsts

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure UnregisterIntegerConsts(AIntegerType: Pointer; AIdentToInt: TIdentToInt; AIntToIdent: TIntToIdent);

C++

extern DELPHI_PACKAGE void __fastcall UnregisterIntegerConsts(void * AIntegerType, TIdentToInt AIdentToInt, TIntToIdent AIntToIdent);

Properties

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

Description

Unregisters conversion functions for string identifiers that represent type values.

UnregisterIntegerConsts, which can only be called in Delphi, unregisters conversion functions that were previously registered by a call to RegisterIntegerConsts. Call UnregisterIntegerConsts from the finalization section of the unit that defines the constants and registers the conversion functions in its initialization section. Once the conversion functions are unregistered, string identifiers can't be used to represent type values.

AIntegerType is a pointer to the type information for the integer-based type whose values are represented as strings. Its value can be obtained from the base type using the TypeInfo function.

AIdentToInt is the conversion function that converts strings that are symbolic representations of values to the corresponding integers.

AIntToIdent is the conversion function that converts values that are instances of the base type to the corresponding string representation.

See Also