bas7qck.hlp (Table of Contents; Topic list)
Common Variables
  10 Questions                                 Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
Why aren't my variables passed through COMMON after I have moved
some of my SUB procedures to another module?
 
This is most likely due to an improperly placed or non-existent
COMMON SHARED statement in the second module. The many different
combinations of COMMON, SHARED, and COMMON SHARED can be confusing.
 
One method that works correctly in most multi-module situations is to
insert a COMMON SHARED statement at the beginning of the main program:
 
     COMMON SHARED A, B, C, D
 
Then insert a duplicate COMMON SHARED statement at the module level of all
other SUB procedure modules. Edit these modules by selecting the SUBS command
from the View menu (press F2), then choosing the name of the module you wish
to edit.