bas7qck.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Statements
  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.