For Programmers: Free Programming Magazines  


Home > Archive > Clipper > February 2006 > Index files placement (CDX)









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Index files placement (CDX)
surfacing

2006-02-21, 6:55 pm

Hello,

I ran into unexpexcted problem:

my database files and respective indexes are located in (let's say)
_DATABASE_ folder and SET DEFAULT points to this folder. For intermediate
processing I use another folder (let's say) _TEMP_. I never had the need for
indexing the intermediate files. Finally this happened. Here's fragment of
the program:

locDBase="_TEMP_\locDBase.dbf" // the base exists
locCDX="_TEMP_\locCDX.cdx" // index file does not exist yet - will be
created

use &locDBase exclusive new
index on someField tag tagName to &locCDX

The last command creates index file but... in _DATABASE_ folder instead of
_TEMP_ folder.

Is there any possibility to force Clipper to create the index files in the
same folder where the database file resides?

For now before indexing the temporary databases, I close them, change
default path to temporary, open databases again and create indexes. After
finishing the task I get back to actual default path, but this is annoying a
bit... besides it creates additional gap to make programming mistakes...

tia

Marek


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com