changedir and include
Blitz3D Forums/Blitz3D Beginners Area/changedir and include
| ||
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? |
| ||
If the scripts folder is not in the current directory use : Include "../scripts/visuals.bb" |
| ||
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. |