table.UPDATE_PRODUCTION_INDEX Function
Syntax
V Update_Production_Index()
Description
Update the production index associated with the table.
Discussion
The <TBL>.UPDATE_PRODUCTION_INDEX() method updates all of the index tags in the production index of the table referenced by <TBL>. The production index is the index file with the same name as the table. The production index is opened automatically when the table is opened.
This script updates the index tags in the production index file for the current table.
tbl = table.current() idx = tbl.update_production_index()
This script updates the indexes for all the tables in a database.
dim tables_to_update as C dim i as N dim count as N tables_to_update = a5_table_enum_actual() count = line_count(tables_to_update) for i = 1 to count statusbar.percent(i,count) table_i = word(tables_to_update,i,crlf()) tbl = table.open(table_i) tbl.update_production_index() tbl.close() next i
See Also