Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using dbf with missing cdx
Message
From
05/02/2001 16:52:43
 
 
To
05/02/2001 14:26:36
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00472606
Message ID:
00472690
Views:
31
>>Hi
>>
>>I have a exe who unzip file containing DBF. Sometime the cdx file is missing and I don't mind because I don't need this cdx. The problem is that I open all those table to do some task and when the cdx is missing I have an error. My program must be able to ignore this error and opent the table. All table are free table. What is the best way.
>>
>>Michel
>
>Oh I forget to say that I know I can check for the error 1707 but I want to know if we can set something else to avoid error
>
>Michel

Have a look at the header structure of the dbf, there's a byte to set to 00h to tell foxpro that there's no cdx.
You can handle it with fread fseek fwrite

Fred
--
FE AVP&Cie
Directeur du département Français
Armoni Informatique
Sydev Applications
MS VFP MVP
Previous
Reply
Map
View

Click here to load this message in the networking platform