Create an temporaly alias in your application  

Send By: Chetan Panchal
Web : N.D.
Email: hetal29@hotmail.Com
Date: 11/07/99

Tip accessed 703 times


Alias are stored in the file IDAPI.CFG, and to modify them there is not very good idea, however, we can need an temporaly alias in our application. This trick becomes trained as making one.

Delphi create an TSession object automatically (Session) whenever you use some database in your application. We will only have to use it.

We will use the AddStandardAlias method to create the alias:

 	procedure TForm1.Button1Click(Sender: TObject);

The methos parameters are:

     	procedure AddStandardAlias(const Name, Path, DefaultDriver: string);

  • Name: Alias Name
  • Path: Alias path
  • DefaultDriver: Driver to use (Paradox, DBASE, or ASCIIDRV)

    Chetan Panchal

    P.S. I would like everyone to use variable naming conventions to write EMail Addresses. That makes them more readable. :-)