>I have create table with field type Character (binary) and typed in some characters but they have changed when I changed code page although in help stands that on this field type doesn't affect code page changes.
>
>
>>>I really don't understand how to make this work.
>>>I am using some characters in .PRG files which I don't want to translate when I change code page in Windows (in Regional and Language Options).
>>>
>>>I have tried CPCONVERT() and it doesn't convert at all characters, SET NOCPTRANS doesn't prevent translating from changing into code page, COMPILE my.prg AS 1252 also doesn't work...
>>>
>>>Can someone help me about this?
>>>
>>>Is it possible to prevent translating characters into code page in .PRG files in VFP 7.0?
>>
>>Boban,
>>
>>CPCONVERT is intended to be used with tables. When you save a PRG as 1252, all of the code gets saved as 1252. You have no option to avoid the code page translation of a program.
>>
>>If you absolutely need the special characters you're speaking about, save them into a table and retrieve them from your program.
>>
>>José
You should tag your table with a given codepage and leave it as is. There is no reason to change the codepage of the table after.
José