Note that there are some explanatory texts on larger screens.

plurals
  1. POVisual FoxPro and VS2008 do not show all DBF records. A separate build does
    primarykey
    data
    text
    <p>I am working on a project in Visual Studio 2008 (in vb.net). The app needs to import data from a Visual FoxPro database (dbc file). Do not ask why FoxPro. It needs to be vfp and the database is updated daily by another application; therefore, I cannot use any other database format.</p> <p>I connect to the database through OleDb FoxPro driver (the latest version). Everything is ok (apart from the speed). I can import data from all the tables I need (dbf files). I load it into a dataset and then operate on the dataset itself not to loose time on reconnecting (I just need to read data at this stage).</p> <p><strong>The problem is:</strong> Not all records are being shown when I compile and run the code.</p> <p>However, when I run a compiled version from the <em>Release</em> folder (in the <em>bin</em> directory), the app displays more records.</p> <p>What is more puzzling, when I open the same datatable file in Visual FoxPro 9.0, I can see only the data that is being shown in VS2008 (not in the Realease version). However, if I open the dbf in OpenOffice Calc, it shows all the records - that is, the same records as the Release version of my app.</p> <p>My first thought was: if it does not show everything in VFP 9, the files must have been created in a different version of VFP, so I should change my connection string. However, why would the compiled Release version show all the correct data? The connection string must be ok.</p> <p>I downloaded <a href="http://www.alexnolan.net/software/dbf.htm" rel="nofollow noreferrer">DBF Viewer Plus</a> to have a look at my dbfs in another app but it cannot see all the records either.</p> <p>I have no idea why it behaves this way. And it is rather annoying, because I need to make a build of my app every single time I want to test it.</p> <p>I'm developing on Windows Vista.</p> <p>Thank you for all your help!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload