Sign in Join
FPDoc Onlineexperiment

GetPropInfo function

In unit TypInfo

Return property type information, by property name.

Declaration

pascal
function GetPropInfo(TypeInfo: PTypeInfo; const PropName: string)
: PPropInfo

Description

GetPropInfo returns a pointer to the TPropInfo record for the PropName property of a class. The class to examine can be specified in one of three ways:

Instance
An instance of the class.
AClass
A class pointer to the class.
TypeInfo
A pointer to the type information of the class.

In each of these three ways, if AKinds is specified, if the property has TypeKind which is not included in Akinds, Nil will be returned.

For an example, see most of the other functions.

Errors

If the property PropName does not exist, Nil is returned.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.