Partager via


Compile Dialog Box

Makes it possible for you to compile program, menu, or query files.

Note

If you have a program open in the Edit window, the Compile command compiles the current program without displaying any options.

This dialog box appears when you choose Compile on the Program menu.

  • File name
    Displays files you can select to compile. To compile files, select the file name from the list and choose Compile, or double-click the file name. To choose multiple files, press and hold the CTRL key while selecting file names.

    The files displayed are those in the current directory that match the type specified in the List files of type box.

  • Directories
    Displays the current directory. You can select a different directory that contains the files you want to compile.

  • Drives
    Displays the current drive. You can select a different hard disk drive that contains the files you want to compile.

  • List files of type
    Lists the available file types with Program (.prg) as the default. If you have given your programs, forms, menus, or queries an extension different from the Visual FoxPro default, you can see them by choosing All Files.

  • Compile
    Compiles selected files.

  • Select All
    Selects all files in the File name box for compiling.

  • Deselect All
    Clears selection of all files in the File name box.

  • More
    Expands the Compile dialog box so you can specify other options.

Options

  • Encrypt compiled files
    Encodes compiled files to prevent decompile programs from reconstructing source code.

  • Include debugging information
    Specifies whether to include debugging information with the compiled file. If this check box is not selected, you cannot view program execution in the Trace window of the Debugger. This check box corresponds to the NODEBUG keyword in the COMPILE command.

  • Compile updated files only
    Compiles only those files from those selected that are new or have been updated since the last time they were compiled.

Error message location

  • .ERR File
    Stores error messages for each selected file in a separate error (.err) file with the same base name as the original file. The .err file is stored in the same directory as the source file. If you do not select this box, error messages for all selected files are stored together in a file that you specify in the File box.

  • Append
    Adds error messages for each selected file to an existing log file. This check box is enabled if you uncheck the .err File check box.

  • File
    Stores error messages for all selected files in one log file. Type the log file name in the box, or choose the dialog button to find and specify an existing log file. This text box is enabled if you uncheck the .err File check box.

Compiled files location

  • Directory
    Specifies a path to store compiled output files. Type the path in the box or choose the ellipsis (...) button to browse and select a directory and file name.

See Also

Reference

COMPILE Command

Trace Window

Do Dialog Box

Other Resources

Dialog Boxes (Visual FoxPro)

Testing and Debugging Applications

Compiling an Application