IPythonClassObject.SetAttr

Syntax

SetAttr(AttrName: String; Value: Variant);

Parameters

AttrName. Class argument name. The name is case-sensitive.

Value. Value that must be assigned to attribute.

Description

The SetAttr method sets value of the argument with the specified name from class instance.

Comments

If the class instance does not have an attribute named AttrName, the attribute will be created.

Example

The example of use is given in description of the IPythonClassObject.GetAttr method.

See also:

IPythonClassObject