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 v5.5 - aofcopyfilter() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 aofCopyFilter()
 Makes a copy of the Client Advantage Optimized Filter
------------------------------------------------------------------------------

Syntax

     aofCopyFilter( <nHandle> ) -> numeric

     <nHandle>  Handle to an existing filter.

Returns

     Returns a filter handle to the duplicate of the specified filter.

Description

     aofCopyFilter() creates a new user-owned filter which is a duplicate
     of the specified filter. This allows you to save user-owned filters
     as needed.

Example

     // Create a new empty, user-owned optimized filter
     nHandle1 := aofCreateFilter()

     // Add records 5, 10, and 15 to the filter
     aofAddRecord( nHandle1, 5 )
     aofAddRecord( nHandle1, 10 )
     aofAddRecord( nHandle1, 15 )

     ? aofCountRecords( nHandle1 )    // returns 3

     // Make a copy of the filter
     nHandle2 := aofCopyFilter( nHandle1 )

     // Show the number of records in the copy of the filter
     ? aofCountRecords( nHandle2 )    // returns 3

     // Free the user-owned filters
     aofFreeFilter( nHandle1 )
     aofFreeFilter( nHandle2 )




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