Anweisung Let
Weist einer Variablen einen Wert zu.
Syntax:
[Let] variable = expression
Parameter:
variable: Variable that you want to assign a value to. Value and variable type must be compatible.
Wie bei nahezu allen Basic-Dialekten ist die Angabe des Schlüsselwortes Let optional.
Beispiel:
Sub ExampleLet
Dim sText As String
Let sText = "Las Vegas"
MsgBox Len(sText) ' Liefert 9 zurück
End Sub