xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

DbSetIndex()

Opens an index file.

Syntax

DbSetIndex( <cIndexFile> ) --> NIL

Arguments

<cIndexFile>
<cIndexFile> is a character string with the name of the file containing the index(es) to add to the list of open indexes in a work area. The file name can be specified including path information and extension. When the file extension is omitted, it is determined by the database driver that opened the database file in the work area.

Return

The return value is always NIL.

Description

DbSetIndex() exists for compatibility reasons. It is superseded by OrdListAdd().

Note that DBSetIndex() opens an index file only, it does not change the controlling index, unless it is the first index to open.

Info

See also:DbClearIndex(), DbCreateIndex(), DbSetOrder(), OrdListAdd(), SET INDEX
Category: Database functions , Index functions
Source:rdd\rddord.prg
LIB:xhb.lib
DLL:xhbdll.dll

Example

// refer to the OrdListAdd() function for an example

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