There's a little program called CPZERO.PRG that will do what you want. It only works on one file at a time, but you could easily write some code that loops through all the tables in a given directory or DBC.
You'll find a copy of it in Tools/CPZERO folder, in your VFP folder.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Hello Mike,
Thanks for your information. In fact I already found the way to that cpzero prg. But I just wondered if there might be a single function within VFP which might do the alteration of the cp.
-Bart
No, there's no single function that will convert an entire DBF, as far as I know. You can use CPDBF() to find the existing code page. And CPCONVERT() to convert a single string. But nothing else that does what you want.
Presumably, that's why someone wrote CPZERO.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.