In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Reindex

Xailer professional forum in English
Responder
Maarten Roos
Mensajes: 126
Registrado: Lun Mar 29, 2010 10:24 am

Reindex

Mensaje 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.
Avatar de Usuario
emeasoft
Mensajes: 1094
Registrado: Mié Abr 01, 2009 4:12 pm
Ubicación: emeasoft
Contactar:

Reindex

Mensaje 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....
Maarten Roos
Mensajes: 126
Registrado: Lun Mar 29, 2010 10:24 am

Reindex

Mensaje 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.
Responder