Class: QgsVbScriptForEachStatement¶
Represents a for … each 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 collection expression being iterated over. |
|
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
collectionandbodyis transferred to this statement.- Parameters:
variableName (str|None)
collection (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
- collection(self) QgsVbScriptExpression | None[source]¶
Returns the collection expression being iterated over.
- Return type: