title: FoxPro 9.0 Looping through a table
body: <p>Is it possible to loop through a table and retrieve the value from each row</p>
  
  <pre><code>=================
  Contracts.dbf
  =================
  P01
  C04
  CH45
  T31
  
  
  counter = 1
  Do While 1 &lt; 4
     SomethingSomethingSomething
  counter = counter + 1
  ENDDO
  </code></pre>
  
  <p>So when counter = 1 the loop return P01, counter = 2 return C04 and so on.</p>