Página 1 de 1

Reindex

Publicado: Lun Feb 28, 2011 12:26 pm
por Maarten Roos
I want to read all indexes and write the tags and order keys to text file. I have sometimes corrupted indexes so i cannot use the :Reindex option, so I like the program to rebuild the indexes by it selves. But I cannot seem to remember if it is possible or how to read dbf and the cdx and write the cdx keys to file? You have gettags() and ??
With the old clipper program we have always uses a .dat file which we manually adjust. I like the program to create this .dat file.

Reindex

Publicado: Lun Feb 28, 2011 12:43 pm
por emeasoft
Maarten:
Tip:
To avoid corrupted indexes, delete all CDX and use the Index ... again, once daily;
AEVAL(DIRECTORY("*.CDX"),{|x|FERASE(x[1])})
Index....

Reindex

Publicado: Lun Feb 28, 2011 1:24 pm
por Maarten Roos
I understand, but i Like to index with help of a .dat file, which includes all tags and index ord and I like the system to create this dat file for me. So I don't have to manually create his file.
Open dbf+cdx and write tags and expressions to file.
Well seem to found it; gettags and ordkey.