Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / source files

Author
Message
someone namedlink
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: Dream Planet
Posted: 8th Aug 2004 17:49
how can you call up commands from the main source file that are in the other source files? simply call the command by its name doesn't work

DIV/DBP-coder
SandraD
20
Years of Service
User Offline
Joined: 30th May 2004
Location: Down on the corner, out in the street.
Posted: 8th Aug 2004 23:35 Edited at: 8th Aug 2004 23:36
I believe you're speaking of the #include command, just like you'd find in C. If you're using Dark Edit however, there is a button for "Included files" that actually works better, with less confusion and such like that.

#includes should be near the top of the source, where you can call the functions contained in other files just like those in your source.

[edit One danger however, functions in includes, if they need access to global variables, can really mess ya up. Step lightly.

Any truly great code should be indisguishable from magic.

Login to post a reply

Server time is: 2024-11-27 04:57:55
Your offset time is: 2024-11-27 04:57:55