SetStrProp

Set value of a string property

Declaration

Source position: typinfo.pp line 907

  procedure SetStrProp(Instance: TObject; const PropName: string; 
                      const Value: AnsiString);
  procedure SetStrProp(Instance: TObject; PropInfo: PPropInfo; 
                      const Value: Ansistring);

Description

SetStrProp assigns Value to the string property described by PropInfo or with name Propname for object Instance.

For an example, see GetStrProp

Errors

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

See also

Name Description
GetStrProp Return the 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
SetOrdProp Set value of an ordinal property
SetWideStrProp Set a widestring property