[Overview][Constants][Types][Classes][Procedures and functions] |
Set value of an enumerated-type property
Source position: line 0
procedure SetEnumProp( |
Instance: TObject; |
const PropName: String; |
const Value: String |
); |
Instance: TObject; |
const PropInfo: PPropInfo; |
const Value: String |
); |
SetEnumPropsets the property described by PropInfoor with name PropNameto Value. Valuemust 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 Instanceor PropInfoare valid pointers. Specifying an invalid property name in PropNamewill result in an EPropertyErrorexception.
|
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 |