Let Statement

Assigns a value to a variable.

แƒกแƒ˜แƒœแƒขแƒแƒฅแƒกแƒ˜

Let Statement diagram


[Let] variable = expression

Parameters:

variable: 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) REM Returns 9
End Sub

Please support us!