xHarbour Reference Documentation > Function Reference |
Retrieves the default extension for index files.
OrdBagExt() --> cFileExtension
The function returns the default extension for index files used by the default RDD as a character string.
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.
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 |
// 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
http://www.xHarbour.com