◄Basic Program Line► ◄Contents► ◄Index► ◄Back► ────────────────────────────────────────────────────────────────────────────── Executable and Nonexecutable Statements A BASIC statement is either executable or nonexecutable: An executable statement advances the flow of a program's logic by telling the program what to do next. For example: ■ Read input ■ Write output ■ Add two numbers together and store the resulting value in a variable ■ Open a file ■ Branch to another part of the program A nonexecutable statement performs tasks such as: ■ Allocating storage for variables ■ Declaring and defining variable types ■ Designating variables to be shared among procedures in a source file The following BASIC statements are nonexecutable: REM or ' DIM (static arrays only) COMMON OPTION BASE CONST SHARED DATA STATIC DECLARE TYPE...END TYPE DEFtype A comment is introduced by the REM statement or by a single quotation mark ('). The following lines are equivalent: 'This is a comment using a single quote. REM This is a comment using REM.