run delphi on other pc using local file as datatbase

Posted by ram_son on February 16, 2005 at 04:55:28:

I put a simple application together that uses an MS Access file as its database.It works fine on the pc it was compiled on but not on other ones.The database file is included in the program folder.The program needs to know the "new" path of the database and not the "old" one which it keeps looking for.
In VB thi is done through:

Private Sub Form_Load()
Data1.DatabaseName = App.Path & "\XXXX.mdb"
End Sub

Anything that does the same function in Delphi.
Any help would be appreciated.Please keep it simple as I am a newbie.

Related Articles and Replies



Reply

Name:
E-Mail:

Subject:

Comments:


[ Delphi Tutorials -- by DelphiLand ]