>>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