Class: QgsVbScriptVariableDeclarationStatement

Represents a variable declaration statement.

For example var x = 3;.

Added in version 4.4.

List of all members, including inherited members

Class Hierarchy

Inheritance diagram of qgis.core.QgsVbScriptVariableDeclarationStatement

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

variableNames

Returns the declared variable names.

class qgis.core.QgsVbScriptVariableDeclarationStatement[source]

Bases: QgsVbScriptStatement

__init__(variableName: str | None)

Constructor for QgsVbScriptVariableDeclarationStatement.

Parameters:

variableName (str|None)

__init__(variableNames: Iterable[str | None])

Constructor for QgsVbScriptVariableDeclarationStatement.

Parameters:

variableNames (Iterable[str|None])

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

QgsVbScriptNode|None

variableNames(self) → list[str][source]

Returns the declared variable names.

Return type:

list[str]