Answer the question
In order to leave comments, you need to log in
What could be the reasons for the unreadability of the dbf file?
The message "Error #: -200 File is not a Data File" pops up, a system window, and not from 1C.
The code is as follows:
PathToFile = ShortLP(PathToFile);
FileDBF = New XBase; // create a new object
FileDBF.Encoding=EncodingXBase.OEM;
FileDBF.OpenFile(PathToFile,,True); // open file
FileDBF.First(); // sets the cursor to the first record
While NOT FileDBF.AtEnd() Loop
// actions with data
here FileDBF.Next(); //move cursor further
EndCycle;
Answer the question
In order to leave comments, you need to log in
It looks like a broken file or its absence as such. Check the correct path to the file, and then check the file itself. I can also offer a service to restore dbf online
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question