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>cftsifdel( <cftshandle>, <expn> )</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   CftsIfdel( <CFTShandle>, <expN> )

       Purpose

   Determines if a CFTS record has been marked as deleted.

       Parameters

   <CFTShandle> is an integer referring to a CFTS index. <expN1> is an 
   integer representing the record number to be tested.

       Return Value

   Returns 1 ( TRUE ) if the specified record is marked as deleted. If 
   not, returns 0 ( FALSE ). A negative return value indicates an error.

       Errors Returned

    -4   (BADSEEK): Error while attempting seek.
    -5   (BADREAD): System generated a read error while reading.
    -7   (RECBOUND): <expN> is not valid. It is either too low (<1)or 
                      greater than the total number of records indexed.
   -16   (BADPARMS): Invalid parameters were passed to the function.    
   -18   (BADHANDLE): Invalid handle was passed to the function.

       Comments

   None.

       Example

   .
   .
   .
   use sales
   xhandle = CftsOpen( 'sales.ia', 20, .T. )
   do while ! eof()
       if deleted()                              && if DBF record is deleted
         if CftsIfdel( xhandle, recno() ) = 0    && and CFTS index record
                                                     && is not,
               result = CftsDelete( xhandle, recno() )   && mark it deleted
                   if result <1                      && in CFTS index
                       ? 'error adding record '+str( recno())+'to CFTS index'
                   endif
         endif
       endif
       skip
   enddo
   .
   .
   .


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