Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Interesting problem with COMMON/DIM SHARED
#10
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:
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
Reply


Messages In This Thread
Interesting problem with COMMON/DIM SHARED - by Sterling Christensen - 01-31-2005, 10:36 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)