xHarbour Reference Documentation > Function Reference |
Retrieves information about available Replaceable Database Drivers (RDDs).
RddList( [<nRddType>] ) --> aRDDNames
Types of RDDs
Constant | Value | Description |
---|---|---|
RDT_FULL *) | 1 | RDDs with full functionality |
RDT_TRANSFER | 2 | RDDs having only import/export capabilities |
*) default |
The function returns a one-dimensional array whose elements contain the names of replaceable database drivers as character strings.
RddList() is an informational RDD function used to obtain the names of RDDs available at runtime of an xHarbour application.
See also: | RddInfo(), RddName(), RddSetDefault() |
Category: | Database drivers |
Header: | rddsys.ch |
Source: | rdd\dbcmd.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
// The example requests various RDDs to be linked and lists // the RDD names. #include "RDDSYS.CH" REQUEST DBFCDX REQUEST SDF REQUEST DELIM PROCEDURE Main LOCAL aNames aNames := RddList( RDT_FULL ) ? "RDT_FULL" AEval( aNames, {|c| Qout(c) } ) aNames := RddList( RDT_TRANSFER ) ? ? "RDT_TRANSFER" AEval( aNames, {|c| Qout(c) } ) RETURN
http://www.xHarbour.com