[Overview][Constants][Types][Classes][Procedures and functions] |
Set the value of a method property
Source position: line 0
procedure SetMethodProp( |
Instance: TObject; |
PropInfo: PPropInfo; |
const Value: TMethod |
); |
Instance: TObject; |
const PropName: String; |
const Value: TMethod |
); |
SetMethodPropassigns Valueto the method the property described by PropInfoor with name Propnamefor object Instance.
The type TMethodof the Valueparameter is defined in the SysUtilsunit as:
TMethod = packed record Code, Data: Pointer; end;
Datashould point to the instance of the class with the method Code.
For an example, see GetMethodProp.
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.
|
Return value of a method property |
|
|
Set value of an ordinal property |
|
|
Set value of a string property |
|
|
Set value of a float property. |
|
|
Set value of a Int64 property |