Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Code page
Message
From
19/05/1998 16:21:59
 
 
To
19/05/1998 16:09:37
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00082646
Message ID:
00100399
Views:
30
>>>Hi, I'm writing from Hungary and I have a small problem with the code page settings. As I know the eastern europian code Windows page is 1250. But when the VFP starts and I check the project files code pages, it shows 1252 for the DBC. So, how can I change the DBC or only the DBF code page settings to 1250?
>>>
>>>Thanks!
>>>
>>>IVAN
>>You can use "cpzero.prg" to do it or change byte 29 in header manually.
>>Cetin
>---
>hi Certin
>When I run my EXE it is asking for the Code Page. I pick WINDOWS and ANSI and the program runs OK. My users are not going to like this extra step. When the program runs the second time, it does not ask for the Code Page. How can I set the Code page in the program code?
>thanks
>rob

Look at what he said about cpzero.prg, that is your solution. "set cpdialog off" will prevent the prompt. If you create a new table, the following settings will be used:

In Visual FoxPro, the current operating system code page if the CODEPAGE configuration item isn’t included in your configuration file. In previous versions of FoxPro, 0 is returned if the CODEPAGE configuration item isn’t included in your configuration file the code page number specified in the CODEPAGE configuration item. For example, CPCURRENT( ) returns 852 if the following line is included in your configuration file:

CODEPAGE = 852

The current operating system code page if you have included the following line in your configuration file:

CODEPAGE = AUTO
Previous
Reply
Map
View

Click here to load this message in the networking platform