Microsoft KB Archive/111322

From BetaArchive Wiki
Knowledge Base


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

Article ID: 111322

Article Last Modified on 3/3/2005



APPLIES TO

  • Microsoft Visual FoxPro 3.0 Standard Edition
  • Microsoft Visual FoxPro 5.0 Standard Edition
  • Microsoft Visual FoxPro 6.0 Professional Edition
  • Microsoft FoxPro 2.5a
  • Microsoft FoxPro 2.5b
  • Microsoft FoxPro 2.5a
  • Microsoft FoxPro 2.5b for MS-DOS
  • Microsoft FoxPro 2.5b for Macintosh



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.


Additional query words: VFoxWin FoxMac FoxDos FoxWin codepage set collate to akz

Keywords: kbinfo KB111322