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

SetObjectProp

Set the value of an object-type property.

Declaration

Source position: line 0

procedure SetObjectProp(

  Instance: TObject;

  const PropName: String;

  Value: TObject

);

procedure SetObjectProp(

  Instance: TObject;

  PropInfo: PPropInfo;

  Value: TObject

);

Description

SetObjectPropassigns Valueto the the object property described by PropInfoor with name Propnamefor the object Instance.

For an example, see GetObjectProp.

Errors

No checking is done whether Instanceis non-nil, or whether PropInfodescribes a valid method property of Instance. Specifying an invalid property name in PropNamewill result in an EPropertyErrorexception.

See also

GetObjectProp

  

Return value of an object-type property.

SetOrdProp

  

Set value of an ordinal property

SetStrProp

  

Set value of a string property

SetFloatProp

  

Set value of a float property.

SetInt64Prop

  

Set value of a Int64 property

SetMethodProp

  

Set the value of a method property