How do you properly use the include command??
Blitz3D Forums/Blitz3D Beginners Area/How do you properly use the include command??
| ||
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?? |
| ||
It is the same as copy-pasting the entire contents of the included file in the exact spot that you type the command. |
| ||
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. |
| ||
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. |