Include Question

Blitz3D Forums/Blitz3D Beginners Area/Include Question

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.

When I try to do an Include statement on another .bb file I'm running into a weird issue that I can't seem to understand.

First I try this:

Graphics3D 800,600,0,2
SetBuffer BackBuffer()
Include "filename.bb"
Print "Hit mouse to exit..."
WaitMouse
End

It works perfect. But if I make the filename a global string variable, the compiler spits out an error saying it's expecting a file. When I look at the debug it shows that the string is "" empty... but somehow I'm able to print the variable name (if i comment out the include line)

Graphics3D 800,600,0,2
SetBuffer BackBuffer()
Global IncludeFile$ = "filename.bb"
Print IncludeFile$
Include IncludeFile$
WaitMouse
End

I don't understand why it won't work.. even if I use full, complete paths etc. Anyone else have this issue or can explain my fault?