Re: TZF - "Default Directory" & reindexing

Philip Kidder <[email protected]>
Newsgroups gmane.comp.lang.delphi.topaz
Message-ID <[email protected]>
Brian,

I think the reason you are getting the MakeIndex error is the OpenDbf
automatically creates the index whne it opens the file. Since your program
canot write to the CD you get  the error. Turn off making the index. There
was a discussion about that sometime ago and I don't remember how off the
top of my head.

When you add the database componet Topaz automatically includes the
directory as part of the file name. If you clear the directory from the file
name Topaz will look for the database in the current directory. Also, set
the Active flag to false. Now you can add the directory string to the file
name. When you set Active :=true the database will be opened in directory
you want.

Phil Kidder


----- Original Message -----
From: "Brian" <[email protected]>
To: <[email protected]>
Sent: Thursday, June 05, 2003 7:53 PM
Subject: TZF - "Default Directory" & reindexing


> Have an app where I need to be able to save a subset of a database to a
> CD or a floppy which can then be imported onto other computers
>
> Method
> ------
>   Export
> Extract required data into a tmp DBF
> ZIP the DBF
> Save ZIP to floppy (or burn to a CD)
>
>   Import
> Use FileOpenDialog to locate ZIP file
> UNZIP the DBF
> Set DBF to recreate Indexes
> Open DBF                     <---  bingo MakeIndex ERROR
>
> NB If the ZIP is first copied to the hard disk, the problem does NOT
> occur !
>
> Reason (after a couple of hours !!)
> ------
> The FileOpenDialog leaves the system "default directory" set to the
> folder from which the last file was opened (in this case a floppy or CD)
>    &
> MakeIndex generates temp files during the reindex in this "default
> directory"
>
> My Temp Workaround
> ------------------
> Manually change the default directory before doing the Open
>
> My question
> -----------
> Is there any way to tell Topaz to use a specific directory as its TEMP
> working directory ??
>
>
> Regards,
>
> Brian
>
>
>
>
>
>

==^================================================================
This email was sent to: [email protected]

EASY UNSUBSCRIBE click here: http://topica.com/u/?clvXPN.a5kvff.Z2NsZHQt
Or send an email to: [email protected]

TOPICA - Start your own email discussion group. FREE!
http://www.topica.com/partner/tag02/create/index2.html
==^================================================================
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.