Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - continue skip to next record matching locate condition http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 continue            Skip to next record matching locate condition
------------------------------------------------------------------------------
 Syntax
   [!sAlias] continue

 Arguments
   sAlias is the database to operate on.

 Description
   The continue command sets the record number to the next record which
   meets the condition specified by the most recent locate command.
   If continue finds the next record, then found() returns .t. and eof()
   returns .f.; otherwise the functions' return values are reversed.

 Example
   #define EXAMPLE_DATABASE
   #include example.hdr

   proc Test_continue
   // display all people called Joe
   open sTest
   locate all for sTest->firstname = "Joe" // non-exact match!
   do while found()                        // display records matching criteria
      ? arecno( sTest ), trim( sTest->firstname ), sTest->lastname
      !sTest continue                      // keep on locating
   enddo
   endproc

   proc main
   Test_continue()
   endproc

See Also: locate seek

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson