RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TypInfo.GetTypeData Function

Returns a pointer to information about a type.

Pascal
function GetTypeData(TypeInfo: PTypeInfo): PTypeData;
C++
PTypeData GetTypeData(PTypeInfo TypeInfo);

GetTypeData utilises Delphi's RTTI (Run Time Type Information) to return a pointer to TTypeData record.  

The TTypeData record is a variant type, but does not contain the variant as a tag. To identify which variant applies to a particular type, you should retrieve the TTypeKind value using the TypeInfo routine.  

The TTypeData record holds meta data about a property. For example, the name of the unit a class type is stored in. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!