xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

OrdBagExt()

Retrieves the default extension for index files.

Syntax

OrdBagExt() --> cFileExtension

Return

The function returns the default extension for index files used by the default RDD as a character string.

Description

OrdBagExt() returns the extension for index files used by the RDD that opens a database in the current work area. Different RDDs maintain different default file extensions. They are used when an index file is created and the file name is specified without extension.

Note:  OrdBagExt() does not return the file extension of an open index.

Info

See also:DbTableExt(), DbOrderInfo(), OrdBagName(), OrdCreate(), OrdFor(), OrdKey(), OrdName(), OrdNumber(), RddName()
Category: Database functions , Index functions
Source:rdd\dbcmd.c
LIB:xhb.lib
DLL:xhbdll.dll

Example

// The example displays default index file extensions of two
// RDDs available in xHarbour.

   REQUEST Dbfcdx

   PROCEDURE Main

      USE Customer VIA "DBFNTX"

      ? OrdBagExt()             // result: .ntx

      USE VfpCust VIA "DBFCDX"

      ? OrdBagExt()             // result: .cdx

      CLOSE ALL
   RETURN

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