xHarbour Reference Documentation > Function Reference |
Registers a user defined Replaceable Database Driver (RDD).
RddRegister( <cRddName>, <nRddType> ) --> nErrorCode
Types of RDDs
Constant | Value | Description |
---|---|---|
RDT_FULL | 1 | RDDs with full functionality |
RDT_TRANSFER | 2 | RDDs having only import/export capabilities |
The function returns a numeric error code indicating a successfull RDD registration.
Return values of RddRegister()
Value | Description |
---|---|
0 | RDD is successfully registered |
1 | RDD is already registered |
>1 | RDD is not registered due to error |
RddRegister() registers a user-defined RDD in xHarbour's RDD system. The easiest way of registration is to call the function from within an INIT PROCEDURE, so that the registration occurs automatically at program start.
Refer to the files in \source\rdd\usrrdd\rdds for examples of RDD registration.
See also: | RddInfo(), UsrRdd_ID() |
Category: | Database drivers , User-defined RDD , xHarbour extensions |
Header: | usrrdd.ch |
Source: | rdd\dbcmd.c |
LIB: | lib\xhb.lib |
DLL: | dll\xhbdll.dll |
http://www.xHarbour.com