Let (statement)

<< Click to Display Table of Contents >>

Let (statement)

[Let] Variable = Expression

Assigns a value to a variable.

The keyword Let was necessary only in older versions of BASIC. Nowadays it is usually omitted.

Example:

Sub Main

 Dim Msg, Pi

 Let Pi = 4 * Atn(1)

 Msg = "Pi = " & Str(Pi)

 MsgBox Msg

End Sub