Hi all,
 
  Just when I thought I'd got my database application put to bed some-one got smart and ruined it. I need some bright ideas.
 
You may remember my hastles having my program installer create a desktop icon to launch the application. That's now fixed but I have just been asked to allow for multiple instances of the program with each having a different directory in which to place its database. 
 
My thought was to allow the installer to allow for three options viz:
  1.  Default directory and by default the database to be in the same one
  2.  Separate directories for other instances of the program and their associated database files
  3.  Separate directory(s) for additional data bases.
 
The idea being that the one program or copies thereof can be dedicated to different customers and yet readily accessed.
 
First problem is to be able to change the database table name and location for each separate program. I attempted to do this by passing the data as a parameter as each program is called,  thus -
 
          if ParamCount <> 0 then
          begin
              MainForm.Table1.Active := FALSE;
              MainForm.Table1.DataBaseName := ParamStr(1);
              MainForm.Table1.Active := TRUE;
          end;

It works in a limited fashion but isn't reliable.   I need another suggestion.
 
Secondly although I can have the installer create separate programs with separate parameters for each of the separate program calls, or even to call the same program with different parameters for each database being used, they all end up as an alteration of the same shortcut icon's  "Target" and "Start in" property fields, as each is installed. I want one for each different database. So that is my second heartache.
 
Finally, something quite different. How do I set up a progress bar to show the progress of reading or writing a disk file. It must be very easy as everyone but me can do it ? Pointer to example please.
 
Thanks for your help
 
      Colin.
 
 
 

Reply via email to