>>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,
Rich Addison, Micro Vane, Inc., Kalamazoo, MI
Relax, don't worry, have a homebrew.
- Charlie Papazian, The New Complete Joy of Home Brewing