[Overview][Constants][Types][Classes][Procedures and functions] Reference for unit 'typinfo' (#rtl)

SetStrProp

Set value of a string property

Declaration

Source position: line 0

procedure SetStrProp(

  Instance: TObject;

  const PropName: String;

  const Value: AnsiString

);

procedure SetStrProp(

  Instance: TObject;

  PropInfo: PPropInfo;

  const Value: Ansistring

);

Description

SetStrPropassigns Valueto the string property described by PropInfoor with name Propnamefor object Instance.

For an example, see GetStrProp

Errors

No checking is done whether Instanceis non-nil, or whether PropInfodescribes a valid string property of Instance. Specifying an invalid property name in PropNamewill result in an EPropertyErrorexception.

See also

GetStrProp

  

Return the value of a string property.

SetWideStrProp

  

Set a widestring property

SetOrdProp

  

Set value of an ordinal property

SetFloatProp

  

Set value of a float property.

SetInt64Prop

  

Set value of a Int64 property

SetMethodProp

  

Set the value of a method property