Let Statement

Assigns a value to a variable.

தொடரமைப்பு:

Let Statement diagram


[Let] variable = expression

அளவுருக்கள்:

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

Note Icon

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

Please support us!