
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Advantage CA-Clipper Guide v6.11 - <b>using rdds in your applications</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Using RDDs in your Applications
------------------------------------------------------------------------------
When an Advantage RDD is linked into your application, the Advantage
RDD can be used in three ways:
1) as the default RDD,
2) as the preferred RDD with an alternate RDD, or
3) accessible on an as-needed basis.
Advantage as Default RDD
To make the Advantage RDD the default RDD for your application, use
either the function AX_SetRDD() or RDDSetDefault().
Preferred and Alternate RDD
The Advantage RDD may be set as the preferred RDD and a non-Advantage RDD
may be set as the alternate RDD. The Advantage command AUTOUSE
provides this capability. The AUTOUSE command works like the CA-Clipper
USE command. The Advantage RDD will be used in the work area if the
table specified in the AUTOUSE command is located on a server
where the Advantage server is running. If the table is
not located on a server where the Advantage server is running,
the alternate RDD is used for the work area.
AUTOUSE test.dbf VIA "DBFNTXAX" ALTERNATE "DBFNTX"
As-needed RDD
To access an RDD which is not the default on an as-needed basis, use
the VIA clause in your USE command. For example, if DBFNTX is the default
RDD, you can access the Advantage NTX RDD as follows:
USE test.dbf VIA "DBFNTXAX"
If the Advantage RDD is the default RDD, you can access DBFNTX or
another RDD as follows:
USE test.dbf VIA "DBFNTX"
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson