FILEFLEX API REFERENCE



NAME
DBCloseIndex -- Close an open index file

SYNTAX
DBCloseIndex(index-ID)

CATEGORY
Using Index Files

DESCRIPTION
To close a particular index file, it must already have been opened previously with the DBUseIndex function. This function returns an index ID value you should store in a global variable. This ID value is then supplied as an argument to the DBCloseIndex function to tell FileFlex you no longer need the index file to be available.

Assuming that you have previously opened the index file STAR.NDX and have its reference stored in the global variable starIndex, you would close that index with a line like the one in the example below.


NOTES
Indexes are tied to their original data files. As such, you must have the appropriate data file selected with a DBSelect function before calling DBCloseIndex. Failure to do so usually results in FileFlex generating an error code and, well, you know the rest.

EXAMPLE
put DBCloseIndex(starIndex) into dbResult

SEE ALSO
DBUse, DBUseIndex, DBClose, DBCloseAll, DBCloseSession

INTERNAL FUNCTION NUMBER
8


Copyright © 1992-1998 by David Gewirtz, under license to Component Enterprises, Inc.
Contact: info@component-net.com

Casa de Bender