Class: QgsVbScriptForStatement

Represents a standard counter-based for loop.

Added in version 4.4.

List of all members, including inherited members

Class Hierarchy

Inheritance diagram of qgis.core.QgsVbScriptForStatement

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.

endExpression

Returns the terminal counter expression.

startExpression

Returns the initial counter expression.

stepExpression

Returns the step increment expression, or None if default.

variableName

Returns the loop variable identifier name.

class qgis.core.QgsVbScriptForStatement[source]

Bases: QgsVbScriptStatement

__init__(variableName: str | None, startExpression: QgsVbScriptExpression | None, endExpression: QgsVbScriptExpression | None, stepExpression: QgsVbScriptExpression | None, body: QgsVbScriptBlockStatement | None)

Constructor for QgsVbScriptForStatement.

Ownership of startExpression, endExpression, stepExpression, 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

endExpression(self) → QgsVbScriptExpression | None[source]

Returns the terminal counter expression.

Return type:

QgsVbScriptExpression|None

startExpression(self) → QgsVbScriptExpression | None[source]

Returns the initial counter expression.

Return type:

QgsVbScriptExpression|None

stepExpression(self) → QgsVbScriptExpression | None[source]

Returns the step increment expression, or None if default.

Return type:

QgsVbScriptExpression|None

variableName(self) → str[source]

Returns the loop variable identifier name.

Return type:

str