[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
##############################################################################
###+---------+################################################################
#+-| REINDEX |----------------------------------------+#######################
#| +---------+ The REINDEX command causes all indexes |#######################
#| for a database to be regenerated |#######################
#+----------------------------------------------------+#######################
##############################################################################
##############################################################################
#+--| Syntax |----------------+###############################################
#| [!<Alias>] REINDEX |###############################################
#+----------------------------+###############################################
##############################################################################
##############################################################################
#######+---| Description |--------------------------------------------+#######
#######| REINDEX should be used when there is a possibility that the |#######
#######| data file does not match the index file. This condition can |#######
#######| exist when a database file has been updated seperately from |#######
#######| the index. |#######
#######+--------------------------------------------------------------+#######
##############################################################################
##############################################################################
#########+--| Example 1 |-------------------------------------------+#########
#########| * See when last update was performed. |#########
#########| |#########
#########| SET ORDER TO 1 && order on 1st database |#########
#########| COUNT TO rec_count && find out how many |#########
#########| && indexed records. |#########
#########| |#########
#########| IF rec_count<>reccount() |#########
#########| REINDEX |#########
#########| ENDIF |#########
#########+----------------------------------------------------------+#########
##############################################################################
##############################################################################
#########+--| Example 2 |-------------------------------------------+#########
#########| * Regenerate indexes every other day. |#########
#########| |#########
#########| IF day( today() ) % 2 = 0 |#########
#########| REINDEX |#########
#########| ENDIF |#########
#########+----------------------------------------------------------+#########
##############################################################################
See Also:
INDEX
lupdate()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson