Re: TZF - "Default Directory" & reindexing - Clarification of Issue

Marie Vihonsky <[email protected]> Wed, 11 Jun 2003 19:14:49 -0400
Newsgroups gmane.comp.lang.delphi.topaz
Message-ID <[email protected]>
Brian,

If you code the 'location' of the MDX file to the TEMP folder, you don't
have to worry about where the FileOpenDialog is - see my previous note:

uses FileCtrl;

   tempath := 'c:\windows\temp\';
   {make sure the directory exists or create it}
   if not DirectoryExists(tempath) then
     if not CreateDir(tempath) then
       raise Exception.Create('Cannot create '+tempath);
    ........
       TzDbf1.MakeIndex(@junktags,tempath+'Fred.mdx');
       TzDbf1.SetIndexTo(tempath+'Fred.mdx');

By specifically telling Topaz where to create the MDX file (everytime),
your problem should be resolved - but it must be done in 'code' NOT the 
Object Inspector.

Marie

==^================================================================
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
==^================================================================