xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

RddName()

Retrieves the name of an RDD used to open files in a work area

Syntax

RddName() --> cRDDName

Return

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.

Description

RddName() is an informational function that retrieves the name of the RDD specified with the USE command to open files in a workarea.

Info

See also:RddInfo(), RddList(), RddSetDefault()
Category: Database drivers
Source:rdd\dbcmd.c
LIB:xhb.lib
DLL:xhbdll.dll

Example

// 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

Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe