Set value of an enumerated-type property.
Source position: typinfo.pp line 1221
procedure SetEnumProp( |
Instance: TObject; |
const PropName: string; |
const Value: string |
); |
Instance: TObject; |
const PropInfo: PPropInfo; |
const Value: string |
); |
SetEnumProp sets the property described by PropInfo or with name PropName to Value. Value must be a string with the name of the enumerate value, i.e. it can be used as an argument to GetEnumValue.
For an example, see GetEnumProp.
No checks are done to ensure Instance or PropInfo are valid pointers. Specifying an invalid property name in PropName will result in an EPropertyError exception.
|
Return the value of an enumeration type property. |
|
|
Set value of a string property. |
|
|
Set value of a float property. |
|
|
Set value of a Int64 property. |
|
|
Set the value of a method property. |