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 - aoferrorcode() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 aofErrorCode()
 Returns the internal error code for the last Client Advantage Optimized
 Filter function
------------------------------------------------------------------------------

Syntax

     aofErrorCode() -> numeric

Returns

     Error code for last Client Advantage Optimized Filter command/function.
     A value of 0 (zero) indicates no error occurred.  Refer to the
     Advantage error guide help file for a list and description of all
     possible AOF error codes.

Description

     aofErrorCode() returns the error status of the last executed Client
     Advantage Optimized Filter operation.  Each Client AOF function called
     will define the error code.  If the Client AOF operation completes
     successfully, a zero will be returned from aofErrorCode().  If the
     Client AOF function fails, a specific internal error code is returned
     from aofErrorCode().  Refer to the Advantage error guide help file for
     a list and description of all possible AOF error codes.

Example

     ? aofIsOptimizable( "age = 25" )    // 0 - not optimizable
     ? aofErrorCode()                    // 6201 - no table open

     USE Names VIA "DBFCDXAX"

     ? aofIsOptimizable( "age = 25" )    // 0 - not optimizable
     ? aofErrorCode()                    // 6203 - no indexes

     SET INDEX TO City, Name

     ? aofIsOptimizable( "age = 25" )    // 0 - not optimizable
     ? aofErrorCode()                    // 6204 - no matching index expr

     ? aofIsOptimizable( "state = 'CA" ) // 0 - not optimizable
     ? aofErrorCode()                    // 6206 - missing quote

     ? aofIsOptimizable( "state = 'CA' .AND" )  // 0 - not optimizable
     ? aofErrorCode()                           // 6208 - syntax error




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