LET keyword

Assigns a variable name to an object, for example when creating an IMAGE, TEXT, RECT. The variable type must be declared before using DIM command. LET can be omitted.

Syntax

LET variable = expression

Parameters

  • variable: a unique variable name. Cannot use recognized command names (required)
  • expression: expression to create an object (required)

Example

DIM myImage AS IMAGE

LET myImage = IMAGE "sun"
myImage = IMAGE "sun" ' LET is optional. These two lines give the same result.

Go back to list of Keywords.