Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FAST TEXT SEARCH for Clipper v.2.0 - <b>copy hits to a file</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   Copy Hits to a File

   The following example suggests logic for code to copy the records 
   identified by a CFTS search to another file.

   select 0              && Ask for first
   available work area
   use primary.dbf
   select 0              && Get next available work area
   use temp.dbf          && Assumes existence of file with 
                         && same structure as primary .DBF
   select primary        && Use alias to select
   CftsOpen primary.ia   && Open CFTS index file
   CftsSet               && Set up for a search
   CftsNext              && Find first hit
   goto record           && Position record pointer
   CftsVeri              && Use CftsVeri() to verify the hit
   select temp           && Use alias to select second file
   append blank
   replace all fields from primary to temp
   select primary
   CftsNext              && Get the next hit


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