PDA

View Full Version : include



peter
07-10-2012, 14:08
Hi Eros,

do we have something like INCLUDE/ IMPORT/ REQUIRE or something else?

Petr Schreiber
07-10-2012, 15:32
It depends for what you need it, but if I understand it well, then the answer is "Yes" :P

You can use #include statement, please see help file to explore all its possibilities. My favourite trick is using wildcards...
So, if you have files plugin_graphics.inc, plugin_sound.inc and plugin_input.inc, you can include them all at once using:


#include "plugin_*.inc"


The functionality is documented in help file and online (http://www.thinbasic.com/public/products/thinBasic/help/html/index.html?include.htm) as well.


Petr

peter
07-10-2012, 16:04
Hi Petr,

I found it! And thanks for the wild card thing.