global in module

BlitzMax Forums/BlitzMax Programming/global in module

slenkar(Posted 2008) [#1]
I have a global called time in my main program that stores the time in milliseconds.

my timer code is in a module and the global 'time' is not recogized.

So when my main program updates time to the latest millisecs() reading it doesnt go into the precompiled module.

How do I fix this?


grable(Posted 2008) [#2]
Modules cannot know about who/what imports it, since they are precompiled, it is a one-way street.

You have to put the global in the module or find some other way of sharing data.


slenkar(Posted 2008) [#3]
thanks ill put it in the module