How to Edit the FoxPro P_CODES Database

ID: Q89000

The information in this article applies to:

SUMMARY

To make changes to the printer driver information, you must edit the P_CODES database, as described below.

MORE INFORMATION

To edit the P_CODES database:

 1. From the File menu, choose Open.

 2. Change Type to Project and select GOODIES\PDRIVERS\GENPD.PJX in
    the Open box.

 3. If you are asked to create a new home directory, choose Yes.

 4. In the GENPD.PJX box, select the P_CODES database, and choose Edit.

    The Browse window appears.

 5. Scroll down until the printer driver you want to change is
    selected.

 6. Press CTRL+F2 to bring the Command window forward.

 7. Do one of the following:

    a. In the Command window, type the following

          REPLACE <field name> WITH <printer escape codes>

       where <field name> is the field name you want to edit, and
       <printer escape codes> (found in your printer manual) are the
       control codes you want to send to the printer.

   -or-

    b. Remain in the Browse window, select a string from an existing
       field, press CTRL+C, move the cursor to the new field, and press
       CTRL+V.

 8. Press CTRL+F1 until the GENPD.PJX window is on top.

 9. From the Project menu, choose Build. Then, select both Build
    Application and Rebuild All. Choose OK to have the changes take
    affect.

10. Save any changes to the project, if prompted to do so.

11. Save the .APP file (GENPD.APP) in the same directory as FoxPro

    version 2.0 or version 2.5 (the default directory is C:\FOXPRO2 or
    C:\FOXPRO25).

Additional reference words: FoxDos 2.00 2.50 2.50a 2.50b 2.60 2.60a driver modify pcode P_CODES.DBF pcodes KBCategory: kbprg KBSubcategory:

Last Reviewed: April 17, 1995