INFO: Code Page Information Stored in Byte 29 of Table Header (111322)



The information in this article applies to:

  • Microsoft Visual FoxPro for Windows 3.0
  • Microsoft Visual FoxPro for Windows 5.0
  • Microsoft Visual FoxPro for Windows 6.0
  • Microsoft FoxPro for Windows 2.5a
  • Microsoft FoxPro for Windows 2.5b
  • Microsoft FoxPro for MS-DOS 2.5a
  • Microsoft FoxPro for MS-DOS 2.5b
  • Microsoft FoxPro for Macintosh 2.5b

This article was previously published under Q111322

SUMMARY

Code page information is stored in byte 29 of the header of a database (table) file (.DBF).

NOTE: The first byte in the header of a database is referred to as 0 byte. If the first byte if referred to as 1, then the code page is 30.

MORE INFORMATION

The program CPZERO.PRG is automatically installed in your main FoxPro directory in FoxPro version 2.x. In Visual FoxPro, the CPZERO.PRG program is located in the VFP\TOOLS\CPZERO directory. CPZERO.PRG is provided to reset a table's code page to zero. To see an example of how to modify a table's code page, view the contents of CPZERO.PRG.

Modification Type:MinorLast Reviewed:3/3/2005
Keywords:kbinfo KB111322