Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Yet another Module question...
#4
blah.bi:
Code:
COMMON SHARED myArray() AS DOUBLE

...

blah.bas (main module):
Code:
'$INCLUDE:'blah.bi'

DIM SHARED myArray(234 TO 3453, 43 TO 456) AS DOUBLE

...

blah2.bas (secondary module):
Code:
'$INCLUDE:'blah.bi'

' No need for a DIM SHARED

PRINT "asdf" ' this line of source code will never be executed

... (SUBs, FUNCTIONs)

You could put a DIM SHARED in blah2.bas if you really wanted to, but it wouldn't do anything... just like the PRINT statement in blah2.bas. Module-level (outside of any SUB/FUNCTION) executable statements (like PRINT or DIM, not like DEFINT or COMMON) are ignored unless they're in the main module.
Reply


Messages In This Thread
Yet another Module question... - by Rokkuman - 09-08-2003, 03:23 AM
Yet another Module question... - by Ninkazu - 09-08-2003, 03:31 AM
Yet another Module question... - by Rokkuman - 09-08-2003, 03:50 AM
Yet another Module question... - by Sterling Christensen - 09-08-2003, 04:31 AM
Yet another Module question... - by Rokkuman - 09-08-2003, 04:47 AM
Yet another Module question... - by Agamemnus - 09-08-2003, 06:08 AM
Yet another Module question... - by Agamemnus - 09-08-2003, 07:20 AM
Yet another Module question... - by Rokkuman - 09-08-2003, 09:36 AM
Yet another Module question... - by ak00ma - 09-08-2003, 10:30 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)