global in module

BlitzMax Forums/BlitzMax Programming/global in module

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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