System.TypeInfo

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function TypeInfo(T: TypeIdentifier): Pointer;

Properties

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

Description

Returns the RTTI information for a given type.

Use TypeInfo to obtain a pointer to the RTTI (Run-time Type Information) block describing a given type. TypeInfo accepts a type name as its parameter, for example Integer or TButton, and returns a pointer to a TTypeInfo record.

Note: This function is not available in Appmethod C++. The Appmethod C++ counterpart is __delphirtti.

Use TypeInfo in combination with the classes and methods offered by the System.Rtti or System.TypInfo unit.

See Also