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?
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?