System.TypInfo.GetTypeName

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetTypeName(TypeInfo: PTypeInfo): string;

C++

extern DELPHI_PACKAGE System::UnicodeString __fastcall GetTypeName(PTypeInfo TypeInfo);

Properties

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

Description

Returns the name of the type from its type information record.

GetTypeName utilises Delphi's RTTI (Run Time Type Information) to return the name of a type as defined in the code.

TypeInfo is the type information record that describes the type for which the name must be obtained. You can obtain the type information for a type by calling the TypeInfo function in Delphi or the __delphirtti operator in C++.

See Also