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_rddname() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 AX_RDDName()
 Return the name of the specified RDD
------------------------------------------------------------------------------

 Syntax

     AX_RDDName( <nRDD> ) -> charstring

     <nRDD> A numeric value representing the position of the database
     driver in the driver table.

 Returns

     Returns a character string of the name of the specified database driver.

 Description

     AX_RDDName() returns the name of the RDD specified by a number from 1
     to the value returned by AX_RDDCount().  The number corresponds to the
     position of the driver in the driver table.  The driver table contains
     the database drivers in the order they are linked.

     AX_RDDName() can be used to determine which drivers have been linked
     into an application.

     AX_RDDName() will display both the DBF drivers and index drivers that
     have been linked into the application. For instance, when you link in
     the Advantage DBFNTXAX RDD, you get both the DBFNTXAX index driver and
     the AXDBF DBF driver. The AXDBF DBF driver is common to both the
     DBFNTXAX and DBFCDXAX RDDs. This implementation detail of RDDs in
     inconsequential to CA-Clipper applications.

 Example

     LOCAL nCnt             // Loop counter
     LOCAL nRDDCnt          // Number of drivers

     // Get number of drivers linked into the application
     nRDDCnt := AX_RDDCount()

     // Loop through RDDs and display info for each one
     FOR nCnt := 1 TO nRDDCnt
        ? cCnt, AX_RDDName( nCnt )
     NEXT

     // The following should be displayed:
     // 1     DBFNTXAX
     // 2     DBFCDXAX
     // 3     AXDBF
     // 4     DBFNTX
     // 5     DBF


See Also: AX_RDDCount()

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