01-31-2005, 10:36 PM
The COMMON can be in the include file, but the DIM SHARED shouldn't be. The variable should be DIMmed only in one module.
Like so:
Like so:
Quote:DECLARE SUB printBlah
COMMON SHARED blah
DIM SHARED blah
blah = 2
printBlah
END
Quote:DECLARE SUB printBlah
COMMON SHARED blah
SUB printBlah
PRINT blah
END SUB