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 - zaprec() remove a range of records http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 zaprec()            Remove a range of records
------------------------------------------------------------------------------
 Declaration
   database.hdr

 Syntax
   proc zaprec extern
   param       alias sAlias, ;
         value ulong nRecStart, ;
         value ulong nRecEnd

 Arguments
   sAlias is the alias to manipulate.
   nRecStart is the first record to remove.
   nRecEnd is the last record to remove.

 Return
   None.

 Description
   The zaprec() function permamently removes a range of records, specified
   by the nRecStart and nRecEnd parameters, from the database associated
   with the passed alias.

 Example
   #define EXAMPLE_DATABASE
   #include example.hdr

   proc Test_zaprec
   open sTest
   ? "Number of records", istr( reccount() )
   zaprec( sTest, 51, 60 )                   // remove 10 records
   ? "Number of records", istr( reccount() )
   zaprec( sTest, 1, areccount( sTest ) )    // remove all records
   ? "Number of records", istr( reccount() )
   endproc

   proc main
   Test_zaprec()
   endproc

See Also: zap

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