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 / New file (add to project). how do I re-arrange the files to make one first instead of last?

Author
Message
Mark Garrett
Reviewed AGK on Steam
20
Years of Service
User Offline
Joined: 10th Jul 2005
Location: California, US
Posted: 16th Sep 2013 05:49
I have 3 files that I have added to my project, but I need to re-arrange the last file to make it the first file. This way the programs will execute in the proper order.

So, how could I re-arrange the file(s) order?

Man is a figment of God's imagination.
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 16th Sep 2013 11:27
Just drag the tabs in the main code pane to their correct position. I'm assuming you're using the current default editor.



Powered by Free Banners
Rudolpho
20
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 16th Sep 2013 19:33
Quote: "Just drag the tabs in the main code pane to their correct position."

Does that really work? :o
I've always exited the editor, opened the .dbpro file in notepad and changed the order from there.


"Why do programmers get Halloween and Christmas mixed up?"
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 16th Sep 2013 19:50
I don't get his, how does it make a difference? I guess I have not come across this yet, so what is this about exactly?

Thanks in Advance!

Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 17th Sep 2013 00:11
It makes no difference to the code, but for people like me who like things in order, it's needed that way. Lol

Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 17th Sep 2013 00:39
Quote: "It makes no difference to the code, but for people like me who like things in order, it's needed that way."


Me likewise.

Actually, it might make a difference if one file is simply intended to be a continuation of the previous one. No idea whether that is possible though. I'll leave that as "an exercise for the reader".

I didn't even know till looking into this query that you could simply move the tabs. If you need to change the file that DBPro thinks is the main file, just open the Solution explorer pane on the left and right click the file you want as the main file. Should be obvious from there.

Quote: "Does that really work?"


Apparently. Try it.



Powered by Free Banners
Rudolpho
20
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 17th Sep 2013 01:57
It does make a difference.
If you declare a type in one file and use it in another the declaration must be parsed before the usage thereof for example.


"Why do programmers get Halloween and Christmas mixed up?"

Login to post a reply

Server time is: 2026-07-07 10:13:45
Your offset time is: 2026-07-07 10:13:45