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 / Function files??

Author
Message
Teh Stone
14
Years of Service
User Offline
Joined: 12th Dec 2009
Location:
Posted: 17th Jan 2010 23:03
Is there a way that I can have different functions in separte dba files

For example when I use gdk and c++ I can make a seperate header file to write functions in that can be called in the main loop of my program just by writing #include "functionsFile" at the start

Is there a similar way to do this in DB Pro cue evrrythin I have tried soo far hasn't worked

Thanks in advance and sorry if this seems a silly question
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 17th Jan 2010 23:07
Yeah, you can include .dba files either inside the editor (I use CodeSurge, it's in the Project Explorer bit under Add New Source, or Add existing source); or you can use the #include command from inside DBP.

Xyus
15
Years of Service
User Offline
Joined: 5th Sep 2009
Location:
Posted: 17th Jan 2010 23:17 Edited at: 18th Jan 2010 06:26
[Edit] ^Got to it first

You can do it in a very similar way.



With name_of_file.dba having the functions and sub routines in it.

Check the help file on #INCLUDE for specifics.
Teh Stone
14
Years of Service
User Offline
Joined: 12th Dec 2009
Location:
Posted: 18th Jan 2010 21:45
Thanks guys I knew I was just missing somethin

Login to post a reply

Server time is: 2024-11-24 20:21:04
Your offset time is: 2024-11-24 20:21:04