Instrução Let

Atribui um valor a uma variável.

Sintaxe:

Let Statement diagram


[Let] variable = expression

Parâmetros:

variable: Variable that you want to assign a value to. Value and variable type must be compatible.

Ícone de nota

Tal como na maioria dos dialetos do BASIC, a palavra-chave Let é opcional.


Exemplo:


Sub ExampleLet
Dim sText As String
    Let sText = "Las Vegas"
    MsgBox Len(sText) ' devolve 9
End Sub

Necessitamos da sua ajuda!