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 - ax_setrdd() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 AX_SetRDD()
 Set the specified RDD as the default
------------------------------------------------------------------------------

 Syntax

     AX_SetRDD( [<cRDDName>] ) -> charstring

     <cRDDName>  An optional character string of the name of the
     database driver to become the new default RDD.

 Returns

     Returns a character string of the name of the previous default database
     driver.  If no RDD name is specified or if the specified RDD is not
     available, the current default RDD name is returned.

 Description

     AX_SetRDD() is used for two reasons: to determine the current RDD in
     the work area and/or to change the default RDD to the specified RDD
     name.  If the specified driver is not available, it returns the name
     of the current default driver.

     This function sets the default replaceable database driver (RDD) when
     opening new tables without specifying a driver with the VIA
     clause.  It is equivalent to CA-Clipper's RDDSetDefault() function.  It
     allows commands and functions that create new tables to use the
     default RDD instead of only using DBFNTX.

 Example

     This program demonstrates the creation of a new table with an
     .fpt memo file.

     ? "Creating MEMOFPT.DBF..."   // Display something on the screen

     AX_SetRDD( "DBFCDXAX" )       // Make the Advantage RDD the default RDD

     AX_SetMemoBlock( 512 )        // Set the memo block size to 512 bytes

     // Create a new table with a memo field using
     // modified block size
     dbCreate( "MEMOTFPT",{{ "LAST_NAME",  "C", 20, 0 },;
                           { "FIRST_NAME", "C", 20, 0 },;
                           { "STREET",     "C", 30, 0 },;
                           { "CITY",       "C", 15, 0 },;
                           { "STATE",      "C",  2, 0 },;
                           { "BALANCE",    "N",  8, 2 },;
                           { "NOTES",      "M", 10, 0 }} )


See Also: AX_RDDCount() AX_RDDInfo() AX_SetMemoBlock()

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