Let Statement

Asigna un valor a una variable.

Sintaxis:

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.

Iconu de nota

Como en casi tolos dialectos de BASIC, la pallabra clave Let ye opcional.


Exemplu:


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

Please support us!