Class: QgsVbScriptForEachStatement

Represents a for … each loop.

Added in version 4.4.

List of all members, including inherited members

Class Hierarchy

Inheritance diagram of qgis.core.QgsVbScriptForEachStatement

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

body

Returns the loop body block statement.

collection

Returns the collection expression being iterated over.

variableName

Returns the loop variable identifier name.

class qgis.core.QgsVbScriptForEachStatement[source]

Bases: QgsVbScriptStatement

__init__(variableName: str | None, collection: QgsVbScriptExpression | None, body: QgsVbScriptBlockStatement | None)

Constructor for QgsVbScriptForEachStatement.

Ownership of collection and body is transferred to this statement.

Parameters:
body(self) → QgsVbScriptBlockStatement | None[source]

Returns the loop body block statement.

Return type:

QgsVbScriptBlockStatement|None

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

QgsVbScriptNode|None

collection(self) → QgsVbScriptExpression | None[source]

Returns the collection expression being iterated over.

Return type:

QgsVbScriptExpression|None

variableName(self) → str[source]

Returns the loop variable identifier name.

Return type:

str