Class: QgsVbScriptAssignmentStatement

Represents a variable reassignment statement.

For example, age = "35 years";.

Added in version 4.4.

List of all members, including inherited members

Class Hierarchy

Inheritance diagram of qgis.core.QgsVbScriptAssignmentStatement

Base classes

QgsVbScriptStatement

Base class for statement nodes in a VBScript script.

QgsVbScriptNode

Represents an abstract node for a VBScript script.

Constructor

__init__

Abstract Methods

clone

Methods

isSet

Returns True if the assignment uses the Set keyword.

target

Returns the target expression being assigned to.

value

Returns the assigned value expression.

class qgis.core.QgsVbScriptAssignmentStatement[source]

Bases: QgsVbScriptStatement

__init__(target: QgsVbScriptExpression | None, value: QgsVbScriptExpression | None, isSet: bool = False)

Constructor for QgsVbScriptAssignmentStatement.

Ownership of target and value is transferred to this statement.

Parameters:
abstract clone(self) → QgsVbScriptNode | None[source]
Return type:

QgsVbScriptNode|None

isSet(self) → bool[source]

Returns True if the assignment uses the Set keyword.

Return type:

bool

target(self) → QgsVbScriptExpression | None[source]

Returns the target expression being assigned to.

Return type:

QgsVbScriptExpression|None

value(self) → QgsVbScriptExpression | None[source]

Returns the assigned value expression.

Return type:

QgsVbScriptExpression|None