Sign in Join
FPDoc Onlineexperiment

SetEnumProp procedure

In unit TypInfo

Set value of an enumerated-type property.

Declaration

pascal
procedure SetEnumProp(Instance: TObject; const PropName: string; 
 const Value: string)

Description

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.

Errors

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.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.