global in module

BlitzMax Forums/BlitzMax Programming/global in module

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?

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.

thanks ill put it in the module