Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- SIx Driver RDD v3.00 - Reference Guide - <b>how do i specify an rdd:</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  How Do I Specify An RDD:

  A Replaceable Database Driver (RDD) can be specified in three ways:

  1.  The table can be opened using the USE command with the VIA clause.

      For example, to open a table called CUST using the SIx Driver's SIXNSX
      flavor you could use the following command:

        USE CUST VIA "SIXNSX"

      Note that the RDD name must be a character string.  You can use a
      variable in the command instead of a literal string, but it is
      important that the driver name be spelled correctly.  The VIA clause
      is defined as part of the USE command in STD.CH.

      Once a table is opened in a workarea, then the RDD used for that
      workarea is automatically used for all operations on the table in
      that workarea (except commands and functions that create a new
      table).  Any command or function that creates a new table (i.e., SORT,
      CREATE FROM, DBCREATE(), etc.) will use the default RDD.

      After a default RDD is set using RDDSetDefault(), then all USE commands
      that don't explicitly specify an RDD using the VIA clause will use
      the default RDD.  Also, all commands and functions that create a new
      table will use the default RDD.


  2.  Clipper's RDDSetDefault() function can be used to set the default
      driver.

      By calling RDDSetDefault(), passing it the name of the RDD you want
      to select, any database files you open or create after that will be
      handled via that driver.  For example:

        RDDSetDefault("SIXCDX")     // Select SIXCDX driver
        USE test INDEX age          // Opens TEST.DBF and AGE.IDX via SIXCDX
        INDEX ON last TO last       // Creates LAST.IDX

        RDDSetDefault("SIXNTX")     // Select DBFNTX driver
        USE test INDEX age         // Opens TEST.DBF and AGE.NTX via SIXNTX
        INDEX ON last TO last      // Creates LAST.NTX


  3.  The normal default RDD (DBFNTX) can be replaced by linking in either
      SIXCDX.OBJ, SIXNSX.OBJ, SIXMDX.OBJ, or SIXNTX.OBJ.

      Normally, Clipper's startup default RDD is DBFNTX.  By linking
      SIXCDX.OBJ into your application you can change the default RDD to
      SIXCDX.  This reduces the size of your application, if you do not
      require DBFNTX in your application.

    NOTE:  If you link in one of these .OBJ files, you'll never need to use
           use the VIA clause of the USE command or the RDDSetDefault()
           function, since the selected flavor of the SIx Driver will become
           the "default" driver, and will prevent DBFNTX from being linked
           in at all.



See Also: DBT.OBJ SIXCDX.OBJ SIXNSX.OBJ SIXNTX.OBJ

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