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