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 - aofsetautoresolve() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 aofSetAutoResolve()
 Sets the flag whether to auto resolve partially optimized filters into
 fully optimized filters
------------------------------------------------------------------------------

Syntax

     aofSetAutoResolve( <lAutoResolve> ) -> logical

     <lAutoResolve>  Logical value determining whether or not a
     partially optimized filter should be automatically resolved into a
     fully optimized filter if the filter was created with the
     aofSetFilter(), aofReFilter(), or aofRebuildFilter() function.
     If <lAutoResolve> is .T., then automatic filter resolution will occur.
     If <lAutoResolve> is .F., then automatic filter resolution will not
     occur.

Returns

     Returns the previous setting of whether automatic filter resolution
     should take place.

Description

     aofSetAutoResolve() allows you to auto resolve partially optimized
     filters into fully optimized filters if the filters are created with
     the aofSetFilter(), aofReFilter(), or aofRebuildFilter() functions.

     The default setting for automatic filter resolution is .F.; that is,
     automatic filter resolution will not take place.

Example

     USE customer INDEX age

     ? aofGetAutoResolve()       // Returns .F. (default)

     // This filter will be built as a partially optimized filter
     // and remain as a partially optimized filter because
     // automatic filter resolution is turned off.
     aofSetFilter( "age > 35 .and. state = 'CA'" )

     aofSetAutoResolve( .T. )    // Turn auto filter resolution on.
     ? aofGetAutoResolve()       // Now returns .T.

     // This filter will be built as a partially optimized filter
     // but will automatically be converted into a fully optimized
     // filter because automatic filter resolution is turned on.
     aofSetFilter( "age > 35 .and. state = 'CA'" )


See Also: aofSetFilter() aofReFilter() aofRebuildFilter()

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