Sign in Join
FPDoc Onlineexperiment

GetObjectPropClass function

In unit TypInfo

Return class of property.

Declaration

pascal
function GetObjectPropClass(Instance: TObject; const PropName: string)
: TClass

Description

GetObjectPropClass returns the declared class of the property with name PropName. This may not be the actual class of the property value.

For an example, see GetObjectProp.

Errors

No checking is done whether Instance is non-nil. Specifying an invalid property name in PropName will result in an EPropertyError exception.

See also

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