Function DbClearIndex() Foundation

Closes all index files in a work area.

Syntax
DbClearIndex() --> NIL
Return

The return value of DbClearIndex() is always NIL.

Description

The function DbClearIndex() exists for compatibility reasons. Instead of DbClearIndex(), the function OrdListClear() should be used.

The index function DbClearIndex() closes all index files in a work area. When the function is used without the alias operator, the indexes are closed in the current work area. Open index buffers are written into the index files prior to closing.

The command SET INDEX with no specified index file can be used instead of DbClearIndex(). SET INDEX is only effective in the current work area.

Examples
DbClearIndex()
// In the example, a customer file is displayed first with 
// and then without an index. 

PROCEDURE Main 
   USE Customer INDEX CustA NEW 

   Browse() 

   DbClearIndex() 

   Browse() 

   USE 
RETURN 
Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.