Let Statement

Assigns a value to a variable.

Синтаксис

[Let] VarName=Expression

Parameters:

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

Тасвири эзоҳ

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


Намуна

Sub ExampleLet

Dim sText As String

    Let sText = "Las Vegas"

    MsgBox Len(sText) ' returns 9

End Sub