| xHarbour Reference Documentation > Function Reference |
![]() |
![]() |
![]() |
Retrieves the name of an RDD used to open files in a work area
RddName() --> cRDDName
The function returns the name of the replaceable database driver managing the files in a work area as character string. If no file is open in a work area, an empty string ("") is returned.
RddName() is an informational function that retrieves the name of the RDD specified with the USE command to open files in a workarea.
| See also: | RddInfo(), RddList(), RddSetDefault() |
| Category: | Database drivers |
| Source: | rdd\dbcmd.c |
| LIB: | xhb.lib |
| DLL: | xhbdll.dll |
// The example shows the result of RddName() calls in the current and
// in aliased work areas.
REQUEST DBFCDX
PROCEDURE Main
USE Customer ALIAS Cust
USE Orders ALIAS Ord NEW VIA "DBFCDX"
? RddMame() // result: DBFCDX
? Cust->( RddName() ) // result: DBFNTX
? Ord-> ( RddName() ) // result: DBFCDX
CLOSE ALL
RETURN
http://www.xHarbour.com