Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Advantage CA-Clipper Guide v6.11 - aoftogglerecord() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 aofToggleRecord()
 Toggles whether the record is contained in a Client Advantage Optimized
 Filter
------------------------------------------------------------------------------

Syntax

     aofToggleRecord( <nHandle>, <nRecord> ) -> logical

     <nHandle>  Handle to an existing filter.

     <nRecord>  The record to change in the filter.

Returns

     Returns .T. if the operation was successful; .F. indicates it
     failed. If aofToggleRecord() failed, aofErrorCode() will return
     information on why the function failed.

Description

     aofToggleRecord() changes whether the specified record is contained
     in a user-owned or a system-owned filter. To change whether a record
     is contained in a system-owned filter using  aofToggleRecord(), you
     must first get a handle to that system-owned filter via the
     aofGetFilterHandle() function.

Example

     USE Customer VIA "DBFCDXAX"

     // Create an empty, user-owned optimized filter
     nHandle := aofCreateFilter()

     // Add records to the filter
     aofAddRecord( nHandle,  5 )
     aofAddRecord( nHandle, 10 )

     // Remove record 5 from the filter
     aofToggleRecord( nHandle, 5 )

     // Add record 25 to the filter
     aofToggleRecord( nHandle, 25 )

     // Free the user-owned filter
     aofFreeFilter( nHandle )


See Also: aofAddRecord() aofRemoveRecord()

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