changedir and include

Blitz3D Forums/Blitz3D Beginners Area/changedir and include

Ben(t)(Posted 2008) [#1]
hello, I have a small problem

my code goes like this

changedir ".."

include "scripts\visuals.bb"

it says that the include file does not exist!
the file is there in the right folder.
is changedir not working as it is supposed to?


Stevie G(Posted 2008) [#2]
If the scripts folder is not in the current directory use :

Include "../scripts/visuals.bb"


big10p(Posted 2008) [#3]
Remember that Include is a 'pre-processor directive' not a regular blitz command/function.

This means the Include is only executed when your program compiles (technically, just before the compilation stage), whereas ChangeDir is only executed when you run your program.