Let Statement

Assigns a value to a variable.

Notkun:


[Let] VarName=Expression

Viðföng:

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

Táknmynd fyrir athugasemd

As in most BASIC dialects, the keyword Let is optional.


Dæmi:


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