FutureBasic Logo

<<    Index    >> FutureBasic 5

let   statement



Syntax:
1.[let] var = expr
2.[let] var;length = address&

Description:
The let statement assigns a value to the variable var, replacing whatever value var had before. Note that the let keyword is optional.
If you use Syntax 2, then length bytes are copied into var, from the memory location starting at address&. The length parameter must be a static integer expression (i.e., it cannot contain any variables). Note that FutureBasic does not check whether length actually equals the size of var. If length is too small, an incomplete value will be copied into var; if length is too big, data will be copied into addresses beyond var's location in memory (this can be dangerous).

See Also:
dim; begin record; BlockMove; BlockFill; Constant declaration statement