title: Reindex visual foxpro table (corrupt cdx)
body: <p>I have an accounting system running, and I'm receiving transactional error while opening a certain database. The problem is that some index files (CDX) are corrupt. The table file (DBF) seems to be perfect. I can open it and read it all even with Excel. How can I rebuild these cdx files with visual fox pro? </p>
  
  <p>I'm trying:</p>
  
  <pre><code>Use mydatabase.DBF exclusive
  
  Reindex
  
  Close all
  </code></pre>
  
  <p>But it's generating a FXP file. I'm not sure if this will work or what should I use.</p>
  
  <p>Also, forgive me if I'm doing something totally wrong with this. I'm trying to learn VFP in this moment, since I need to fix this trouble.</p>
  
  <p>Thanks in advance.</p>