How to Edit the FoxPro P_CODES Database

Last reviewed: April 17, 1995
Article ID: Q89000
The information in this article applies to:
  • Microsoft FoxPro for MS-DOS, versions 2.0, 2.5x, 2.6, 2.6a

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:


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 17, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.