KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Removing indices programmatically
PRODUCT: 4D | VERSION: | PLATFORM: Mac & Win
Published On: February 28, 2003

Compatibility: Version 6.7.x and 6.8.x

When you want to perform a recover by tag, you may want to remove all the indices in the database. Although this is a simple process when done manually, it is a time-consuming process on larger databases. The following code will accomplish the process:

For ($i;1;Count tables)
 For ($j;1;Count fields($i))
   SET INDEX(Field($i;$j)->;False)
 End for
End for