Before building an application, you can test the project to verify references and check that all components are available. Testing a project rebuilds the project, which forces Visual FoxPro to resolve file references and recompile outdated files.
|To step through code more easily, mark locations in the code by using bookmarks, shortcuts, and breakpoints. For details, see How to: Create Bookmarks and Task List Shortcuts.|
You can test projects using the Project Manager or the BUILD PROJECT command. However, more options are available when you use the Project Manager. For more information, see BUILD PROJECT Command.
To test a project
Open the project for your application.
In the Project Manager, click Build.
In the Build Options dialog box, select Rebuild project.
Select any other options you want and click OK.
Tip: You can view and save build messages that occur during the build process. For more information, see How to: View and Save Build Messages.
|After the project builds successfully, run the project before building the application file. As you add components to your project, it is recommended that you test and run your project after adding each component.|
To run the project
In the Project Manager, select the main program, and then click Run.
You can also run projects by using the DO command with the name of the main program. For example, typing the following line of code in the Command window runs a project containing the program, Main.prg:
If the program runs correctly, you can build an application file that contains all the files in the project. For more information, see Compiling an Application.