qb45advr.hlp (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.
.cmmnx
:nCOMMON Statement Programming Example
  QuickSCREEN      Details     Example      Contents      Index
──────────────────────────────────────────────────────────────────────────────
COMMON Statement Programming Example
 
COM1_EX.BAS and COM2_EX.BAS are two program files that illustrate
the use of the COMMON statement. They are in the subdirectory ADVR_EX.
To look at the program text in the View window and, optionally, to run the
programs, load COM1_EX.BAS using the File menu Open Program command.
Be sure COM2_EX.BAS is in the current working directory.
 
The COMMON statement is used to pass variables between two chained
programs. The first program reads in a series of numeric values, stores
the values in an array, and then chains to the other program. The second
program finds and prints the average of the values.