Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I get the CPDIALOG?
Message
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00233571
Message ID:
00233651
Views:
31
>>>>Does anyone know how to simulate the scenario of getting the codepage dialog to popup when opening on older style FP 2.5/2.6 table.
>>>>
>>>>I have a VFP 5 app that needs to pack a FP 2.6 table. The users are randomly getting the popup requesting them to select the proper codepage when I "USE" the FP 2.6 table. However, if I download their files or try to create one on my local PC (in both FP 2.6 and VFP 5), I cannot do whatever is needed to get the codepage dialog.
>>>>
>>>>I think that by setting CPDIALOG to OFF, that the code page selection dialog will not occur and would like to confirm this by testing it, but as I stated, I can't seem to re-create the type of file that would cause the popup. Any suggestions would be greatly appreciated.
>>>>
>>>>TIA,
>>>>-Isaac
>>>
>>>
>>>Hi Isaac
>>>
>>>Would the getcp() function be of any help?
>>>
>>>Oscar
>>
>>No getcp() would not help because I am trying to re-create the scenario that would cause the dialog. That is, I want to create a FP 2.6 style file that when I open with VP 5 would cause the code page dialog to popup.
>>
>>-Isaac
>
>SET CPDIALOG ON???
>
>Wayne

I guess I'm not making myself clear and I must apologize for that.

Let me try and better explain what I'm trying to do ...
I know what SET CPDIALOG and GETCP() do. What I am trying to do is simulate the scenario that will cause the code page dialog to popup without doing a GETCP(). My environment has SAFETY ON and CPDIALOG ON. Having said that, I now want to create a table that does NOT have a codepage so that VFP's GETCP() will automatically fire. I even tried using the MS supplied app called cpzero.prg on a foxplus type table, but no matter what I do, VFP opens the table properly without asking for the codepage. I know this should be "good", but the problem is that at the client site, the VFP app randomly pops up the GETCP() dialog which is "not good" because the app runs automatically during the night when no one is around to answer the code page dialog question.

Thanks again for any suggestions,
-Isaac
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform