xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

OrdListRebuild()

Rebuilds all indexes open in the current work area

Syntax

OrdListRebuild() --> NIL

Return

The function always returns NIL.

Description

OrdListRebuild() is used to reorganize all indexes open in the current work area. Use function OrdCreate() to reorganize a single index.

Info

See also:DbClearIndex(), DbCreateIndex(), DbSetIndex(), DbSetOrder(), INDEX, OrdCreate(), OrdListAdd(), OrdListClear(), REINDEX
Category: Database functions , Index functions
Source:rdd\dbcmd.c
LIB:xhb.lib
DLL:xhbdll.dll

Example

// The example opens a database along with two index files. All indexes
// stored in the index files are rebuild.

   PROCEDURE Main
      USE Customer
      SET INDEX TO Cust01, Cust02

      OrdListRebuild()

      USE
   RETURN

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