Class: QgsVbScriptWhileStatement¶
Represents a while loop statement.
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
Enums
Type of while or do loop. |
Abstract Methods
Methods
Returns the loop body block statement. |
|
Returns the loop condition expression. |
|
Returns the loop variant type. |
- class qgis.core.QgsVbScriptWhileStatement[source]¶
Bases:
QgsVbScriptStatement- __init__(loopType: QgsVbScriptWhileStatement.LoopType, condition: QgsVbScriptExpression | None, body: QgsVbScriptBlockStatement | None)¶
Constructor for QgsVbScriptWhileStatement.
Ownership of
conditionandbodyis transferred to this statement.- Parameters:
loopType (QgsVbScriptWhileStatement.LoopType)
condition (QgsVbScriptExpression|None)
body (QgsVbScriptBlockStatement|None)
- class LoopType(*values)¶
Bases:
EnumType of while or do loop.
WhileWend: While … Wend loopDoWhile: Do While … LoopDoUntil: Do Until … LoopDoLoopWhile: Do … Loop WhileDoLoopUntil: Do … Loop Until
- DoLoopUntil = 4¶
- DoLoopWhile = 3¶
- DoUntil = 2¶
- DoWhile = 1¶
- WhileWend = 0¶
- body(self) QgsVbScriptBlockStatement | None[source]¶
Returns the loop body block statement.
- Return type:
- abstract clone(self) QgsVbScriptNode | None[source]¶
- Return type:
QgsVbScriptNode|None
- condition(self) QgsVbScriptExpression | None[source]¶
Returns the loop condition expression.
- Return type:
- loopType(self) QgsVbScriptWhileStatement.LoopType[source]¶
Returns the loop variant type.
- Return type: