Share via


How to: Create Programs

You can create a standalone program, a program as part of a project, or programmatically.

Note

After creating a program, make sure you save it. If you try to close an unsaved or modified program, Visual FoxPro prompts you to save the program or discard changes.

To create a standalone program

  1. On the File menu, click New.

  2. In the New dialog box, click Program, and then New File.

  3. In the editing window, type the code for the program.

To create a program in a project

  1. Open the project for your application in the Project Manager.

  2. In the Project Manager, expand the Code node.

  3. Click Programs, then New.

  4. In the editing window, type the code for the program.

To create a program programmatically

  • In the Command window, use the MODIFY COMMAND to open an editing window.

See Also

Tasks

How to: Edit Programs

How to: Save Programs

Reference

Project Manager Window

MODIFY COMMAND Command

Command Window (Visual FoxPro)

Other Resources

Working with Programs