Unit 'TypInfo' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#rtl]

SetEnumProp

Set value of an enumerated-type property.

Declaration

Source position: typinfo.pp line 919

procedure SetEnumProp(

  Instance: TObject;

  const PropName: string;

  const Value: string

);

procedure SetEnumProp(

  Instance: TObject;

  const PropInfo: PPropInfo;

  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

GetEnumProp

  

Return the value of an enumeration type property.

SetStrProp

  

Set value of a string property.

SetFloatProp

  

Set value of a float property.

SetInt64Prop

  

Set value of a Int64 property.

SetMethodProp

  

Set the value of a method property.


Documentation generated on: Jul 24 2023