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.

DarkBASIC Professional Discussion / Are Functions Allowed in other files

Author
Message
Jacob G
13
Years of Service
User Offline
Joined: 12th Jul 2012
Location:
Posted: 13th Jul 2012 18:16
I was trying awhile ago to add multiple files and include them but it appears its not allowing me to have functions in that file. What am i allowed besides functions, using Type worked for me.

but i like functions ;(

Jacob Gardam
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 13th Jul 2012 19:00
Functions should work fine. Try the complete project in the attached zip file.
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 13th Jul 2012 19:02
Functions must go at the end of your program.

Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 13th Jul 2012 19:04
Or in separate files as in my demo.
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 13th Jul 2012 19:40 Edited at: 13th Jul 2012 19:41
Sorry yeah. I read include them as copy/paste them. That's what I tend to do. I like to see everything that is happening.

basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 13th Jul 2012 21:43
you can include multiple files wether by using #include or right click the mouse on the project icon in your IDE then put add new file.

Login to post a reply

Server time is: 2026-07-07 12:27:16
Your offset time is: 2026-07-07 12:27:16