Gv4C6‖

PFo8B‖Let Statement

SiQNq‖Assigns a value to a variable.

yo55G‖Syntax:

srDXY‖ Let Statement diagram


[Let] variable = expression

X4WmE‖Parameters:

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

Note Icon

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


KC9DD‖Example:


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