JavaScript Editor js editor     Web development 

Main Page

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

  1. Open the project for your application.

  2. In the Project Manager, click Build.

  3. In the Build Options dialog box, select Rebuild project.

  4. Select any other options you want and click OK.

    You can view and save build messages that occur during the build process. For more information, see How to: View and Save Build Messages.

For more information, see Project Manager Window and Build Options Dialog Box.

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:

В Copy Code
DO 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.

See Also

JavaScript Editor js editor     Web development