Class: QgsVbScriptForStatement¶
Represents a standard counter-based for loop.
Added in version 4.4.
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
Base class for statement nodes in a VBScript script. |
|
Represents an abstract node for a VBScript script. |
Constructor
Abstract Methods
Methods
Returns the loop body block statement. |
|
Returns the terminal counter expression. |
|
Returns the initial counter expression. |
|
Returns the step increment expression, or |
|
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, andbodyis transferred to this statement.- Parameters:
variableName (str|None)
startExpression (QgsVbScriptExpression|None)
endExpression (QgsVbScriptExpression|None)
stepExpression (QgsVbScriptExpression|None)
body (QgsVbScriptBlockStatement|None)
- body(self) QgsVbScriptBlockStatement | None[source]¶
Returns the loop body block statement.
- Return type:
- abstract clone(self) QgsVbScriptNode | None[source]¶
- Return type:
QgsVbScriptNode|None
- endExpression(self) QgsVbScriptExpression | None[source]¶
Returns the terminal counter expression.
- Return type:
- startExpression(self) QgsVbScriptExpression | None[source]¶
Returns the initial counter expression.
- Return type:
- stepExpression(self) QgsVbScriptExpression | None[source]¶
Returns the step increment expression, or
Noneif default.- Return type: