Android Question Can I add Main Module from another Project?

Startup

Active Member
Licensed User
Longtime User
I see page2.bas and page3.bas but no main.bas in any of my other project files when I select "Add Existing Module". I'm guessing you can't add a main module from another project to an existing project so I have to do a copy and paste to get the code?
 

mangojack

Expert
Licensed User
Longtime User
The main module is a .b4a file .. copy the source project (the one with the main module you want) to another folder and then open. your now have your main module. Add other modules to this as required. Save the project as your new current project. Dont forget to change project properties, package names,icons etc
 
Upvote 0

Beja

Expert
Licensed User
Longtime User
You can't have two MAIN modules in the same project, so you will need to rename the current main module with a different name, add new (empty) module and rename it MAIN, then copy EVERYTHING from the old MAIN and paste it to the newly created one make sure you delete EVERYTHING here before you paste.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…