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 - aofaddrecord() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 aofAddRecord()
 Adds a record to a Client Advantage Optimized Filter
------------------------------------------------------------------------------

Syntax

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

     <nHandle>  Handle to an existing filter.

     <nRecord>  Record number of record to add to the filter.

Returns

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

Description

     Adds the specified record to a user-owned or a system-owned filter.
     To add a record to a system-owned filter using aofAddRecord(), 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 )  // should return .T.
     ? aofAddRecord( nHandle, 10 )  // should return .T.

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


See Also: aofGetFilterHandle()

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