While updating a .DBF file (adding/updating/deleting), all the indexes present for that .DBF file have to be opened with the .DBF file. So any changes to the .DBF file will update the indexes. Reindexing is another option, but this is a very costly affair.
As suggested in my previous post, indexes can be updated for a .DBF file, if those indexes are opened simultaneously with the .DBF file.
Here it is :
USE ORDER INDEX ORDER1,ORDER2,ORDER3........
REPL ORDERNO WITH nOrderno
REPL ORDERDT WITH dOrderdt
REPL AMOUNT WITH nOrderamt
The above statements will save a record in the .DBF file and also will update all the indexes opened. In this case, ORDER1.idx,ORDER2.idx and ORDER3.idx.