Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine if DBF marked with codepage without ope
Message
 
 
To
16/09/2003 11:23:18
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00829442
Message ID:
00829457
Views:
28
>Hi,
>
>I need to know if a DBF is marked with a codepage without opening it in order to avoid calling cpzero unnecesarily, and at the same time avoid the dialog appearing to user.
>
>TIA,
>
Alex,

The cpzero.prg writes new codepage into the header of the table using LLFF.
              * Now poke the codepage id into byte 29
              =FSEEK(m.fp_in,29)
              =FWRITE(m.fp_in,CHR(m.cpbyte))
You can use LLFF to read the same byte.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform