help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



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

SetMethodProp

Set the value of a method property

Declaration

Source position: line 0

procedure SetMethodProp(

  Instance: TObject;

  PropInfo: PPropInfo;

  const Value: TMethod

);

procedure SetMethodProp(

  Instance: TObject;

  const PropName: String;

  const Value: TMethod

);

Description

SetMethodProp assigns Value to the method the property described by PropInfo or with name Propname for object Instance.

The type TMethod of the Value parameter is defined in the SysUtils unit as:

TMethod = packed record
  Code, Data: Pointer;
end;                                                                         

Data should point to the instance of the class with the method Code.

For an example, see GetMethodProp.

Errors

No checking is done whether Instance is non-nil, or whether PropInfo describes a valid method property of Instance. Specifying an invalid property name in PropName will result in an EPropertyError exception.

See also

GetMethodProp

  

Return value of a method 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

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505