Re: TZF - "Default Directory" & reindexing
[email protected] Wed, 11 Jun 2003 09:40:47 EDT
| Newsgroups | gmane.comp.lang.delphi.topaz |
|---|---|
| Message-ID | <[email protected]> |
Brian,
I use a method similar to what Phil describes below and it
works fine.
In the design phase, I ALWAYS leave the database properties
as Active=FALSE. Then I set the database name and
Active:=True in the mainForms.Activate event.
Over the years, I have come to loath permanently maintianed
index files, so I allow each user to pick their "sort order" and
build it on the fly. This requires that I have a different
"index directory" for each user. Consequently, I frequently
use parameter1 and parameter2 to indicate the location
of the data directory and the index directory ... if the data
were on a network, it might look something like this
ExeFileName F:\example\data C:\Junk
Hope this helps,
Bob Watson
In a message dated 06/10/2003 9:45:28 AM Eastern Standard Time,
[email protected] writes:
> Brian,
>
> When you ChDir (DataDir) and set Active := true Topaz looks in the current
> directory (DataDir) and opens the file. If you FileName := DataDir +
> FileName and then set Active := true Topaz will look in DataDir for the
> file.
>
> I don't remember the name of the procedures right now but they will parse
> the filename and return the directory and the filename. This will give you
> the filename for each time you run the procedure.
>
> Phil Kidder
>
==^================================================================
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
==^================================================================