Import and Globals. Whats wrong?
BlitzMax Forums/BlitzMax Beginners Area/Import and Globals. Whats wrong?
| ||
Import "Globals.bmx" Main-Module can read all Globals declared in that Module Import "SomeTypes.bmx" Can not acces/read Globals declared in "Globals.bmx" "Globals.bmx" just looks like: Global Width:int=1024 Why its only a Global for the Main-Module and all other imported modules ignores it? Puplic or Private didnt help. What did wrong? |
| ||
Import means that files are compiled independently of each other. If SomeTypes.bmx is dependent on Globals.bmx it will also need to Import Globals.bmx. |
| ||
Thank you. ouch...just took second look in the manual. Thats the point where poeple normaly tell me:"If you can read, you have advantages";-) |