Futurebasic/Language/Reference/let

< Futurebasic < Language < Reference

LET

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 FB 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; DIM RECORD; BEGIN RECORD; BLOCKMOVE; DEF BLOCKFILL; Constant declaration statement

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.