[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'typinfo' (#rtl)

GetObjectPropClass

Return class of property.

Declaration

Source position: line 0

function GetObjectPropClass(

  Instance: TObject;

  const PropName: String

):TClass;

function GetObjectPropClass(

  AClass: TClass;

  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

SetMethodProp

  

Set the value of a method property

GetOrdProp

  

Get the value of an ordinal property

GetStrProp

  

Return the value of a string property.

GetFloatProp

  

Return value of floating point property

GetInt64Prop

  

return value of an Int64 property

The latest version of this document can be found at lazarus-ccr.sourceforge.net.