NAME

let - assignment statement

SYNOPSIS

[let] Var = Expr

DESCRIPTION

Let sets the value of the variable Var to the value of the expression Expr.  Var must be the name of a variable or an array element.  If the type of the value of Expr does not match the type of Var, the value of Expr must be converted to the type of Var before it is stored.  If the type of Expr is string and the type of Var is numeric or vice versa, the conversion can not be performed and a type mismatch exists. 

The keyword let is optional. 

EXAMPLE

The program
	let a = 12
	let a$ = "Basmark Corporation"
	b$(9, 3) = "BASIC"
	let b(1, 5) = 495
	print a
	print a$
	print b$(9, 3)
	print b(1, 5)
produces the output
	 12
	Basmark Corporation
	BASIC
	 495

DIAGNOSTICS

An "Overflow" error occurs if the value of Expr is too large to be assigned to Var. 

from The Basmark QuickBASIC Programmer’s Manual by Lawrence Leinweber