To add to Mike's explaination to jrbbldr:
Yes, files are automatically added to a pjx, if you just start with a main.prg and compile it. But there are different defaults for different types of files and databases are by default not included into the application.
There are at least two behaviors of the project manager you need to take into account, though:
1. In regard to databases the project manager tends to keep them opened. Especially if a databse node is expanded in the project manager you can even CLOSE DATABASE in the command window, still the database is keept open.
Take these few steps: Open a project containing a dbc in the data tab of the manager, expand that tab, the database is opened and a combobox in the standard toolbar of the VFP ide will display the database alias name.
Now execute "CLOSE DATABASE" in the command window, the comobobox in the standard toolbar will turn white, so it seems the command has done it's job, but the database is still open, expand the combobox and you'll see there still is the database alias name entry, the database is just not set as the active one.
Now select the database node in the project manager and click the close button, this really closes the database and the tree node. The combobox in the standard toolbar now does not have the database in it any more.
2. Even files in the project that are excluded from the build are compiled during a build run with either "(Re)compile all files" set or if they have more recent source code than their object code.
Because of the project manger behvior described in 1, you might have code working witout any "OPEN DATABASE" command, because the project manager might have the database open by default. This might lead to an EXE not working, while the application works in the IDE.
Another more famous behavior difference is in regard to a missing READ EVENTS, because the IDE will keep an app running as itself will function as the missing read events, the command window being active and keeping everything running after the main.prg has finished and a menu and/or form is established. But also the wrong usage of a database in code can lead to a non working EXE.
I do add databases into the project manager, but I tend to recommend not to do so, because that forces you to handle the database in code in regard to OPEN and CLOSE it, and that will then work in any case.
Bye, Olaf.