Partager via


How to: Edit Programs

After creating a program, you can make changes to it or an existing program.

Note

After editing a program, make sure you save it.

To edit a standalone program

  1. On the File menu, click Open.

  2. In the Open dialog box, choose Program in the Files of type list to show only program files.

  3. Click the program you want to modify, and then OK.

To edit 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, and then the Programs node.

  3. In the Programs node, select the program you want, and click Modify.

To edit a program programmatically

  • In the Command window, perform one of the following:

    • Use the MODIFY COMMAND with the name of the program (.prg) file to open an editing window for the program. For example:

      MODIFY COMMAND MyProgram
      
    • Use the MODIFY COMMAND with a question mark (?) to display the Open dialog box so you can browse for and select a program file. For example:

      MODIFY COMMAND ?
      

See Also

Tasks

How to: Save Programs

How to: Run Programs

Reference

Project Manager Window

MODIFY COMMAND Command

Command Window (Visual FoxPro)

Other Resources

Working with Programs