>>>OK, if the code page of a dbf is zero, and SET CPDIALOG is ON, you get the code page dialog when you open the dbf.
>>>
>>>Great. Now, if the code page is non-zero, and I want to change it (maybe even back to zero), how do I do it? I can't find anything in VFP Help or MSDN Library.
>>>
>>>Thanks,
>>
>>do home()+'tools\cpzero\cpzero' with 'mytable.dbf'
>>Cetin
>
>Thanks, Cetin. That does it, of course.
>
>I think it might be useful to mention the second optional parameter, which is what byte to set the codepage to.
>e.g.:
>437=U.S. DOS
>1252=U.S. Windows
>So:
>DO (HOME()+"Tools\CPZero\CPZero" WITH "TableName.dbf", 437
>would set the table to U.S. DOS codepage.
>
>Cheers,
Yes :) I sometimes do it like :
lcDBF = getfile('DBF') && here I'm sure I can open excl.
handle=fopen(lcDBF,12)
=fseek(handle,29,0)
=fwrite(handle,chr(0),1)
=fclose(handle)
use (lcDBF) exclusive && Asks for codepage
Cetin