How do you properly use the include command??

Blitz3D Forums/Blitz3D Beginners Area/How do you properly use the include command??

W(Posted 2005) [#1]
I amd trying to use the include command in my Blitz 3-d program to run the Main Menu, can anyone learn me as to how??


jhocking(Posted 2005) [#2]
It is the same as copy-pasting the entire contents of the included file in the exact spot that you type the command.


BlackJumper(Posted 2005) [#3]
Think of the include command as being like a 'Cut & Paste' of all the code in a file at the exact spot where you place include "file.bb"

... so a better question might be "how do I code a Main Menu section ?"

I would recommend a look at some of the code in the archives.


_PJ_(Posted 2005) [#4]
Include actually INCLUDES all the "included" file on compiling, rather than run anything separately.

I find it useful for including function routines that can be edited separately.