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

SetSetProp

Set value of set-typed property.

Declaration

Source position: typinfo.pp line 1240

procedure SetSetProp(

  Instance: TObject;

  const PropName: string;

  const Value: string

);

procedure SetSetProp(

  Instance: TObject;

  const PropInfo: PPropInfo;

  const Value: string

);

Description

SetSetProp sets the property specified by PropInfo or PropName for object Instance to Value. Value is a string which contains a comma-separated list of values, each value being a string-representation of the enumerated value that should be included in the set. The value should be accepted by the StringToSet function.

The value can be formed using the SetToString function.

For an example, see GetSetProp.

Errors

No checking is done whether Instance is non-nil, or whether PropInfo describes a valid ordinal property of Instance. No range checking is performed. Specifying an invalid property name in PropName will result in an EPropertyError exception.

See also

GetSetProp

  

Return the value of a set property.

SetOrdProp

  

Set value of an ordinal 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.

SetToString

  

Convert set to a string description.

StringToSet

  

Convert string description to a set.


Documentation generated on: Dec 23 2024