>Hi,
>
>I need to know if a DBF is marked with a codepage without opening it in order to avoid calling cpzero unnecesarily, and at the same time avoid the dialog appearing to user.
>
>TIA,
>
Alex,
The cpzero.prg writes new codepage into the header of the table using LLFF.
=FSEEK(m.fp_in,29)
=FWRITE(m.fp_in,CHR(m.cpbyte))
You can use LLFF to read the same byte.
--sb--