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 - ax_driver() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 AX_Driver()
 Verify an Advantage RDD is loaded
------------------------------------------------------------------------------

 Syntax

     AX_Driver() -> logical

 Returns

     Returns a .T. if an Advantage RDD is loaded in the current work area.
     Returns an .F. if any other RDD is loaded in the current work area.

 Description

     AX_Driver() determines if an Advantage RDD is being used in the
     current work area.  This allows alternate code paths to be taken
     depending on whether an Advantage RDD or a non-Advantage RDD is
     being used in the current work area.

 Example

     // Need to include an Advantage header file to use AUTOUSE command
     #include "DBFNTXAX.CH"

     AUTOUSE cust VIA "DBFNTXAX" ALTERNATE "DBFNTX"     // Open CUST.DBF

     // Check to verify an Advantage RDD is being used
     IF ( AX_Driver() )
        ? "Advantage RDD is being used in the current work area."
     ELSE
        ? "Advantage RDD is not being used in the current work area."
     ENDIF

     // Should print "Advantage RDD is being used..." if cust.dbf exists
     // on a server where the Advantage Database Server is running.


See Also: AX_Loaded()

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