* *
* * News
 • Daily news
 • Archived news

 • WildCard
 • Qbasic Articles
 • QB Comic!

Learning center
 • QB Books
 • Qbasic Lessons!
 • Qbasic FAQ
 • Newbies Section
 • Qbasic Tutorials

* *
.COMMON 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.
* * ** * * * *