We help IT Professionals succeed at work.

database,standalone

amir311
amir311 asked
on
  I have a Problem so that i had written a program
with delphi 5.0 and i want run it on all computer.This
program uses Paradox database but.i can't define
aliases for all computer.i want run my program without
delphi software.
What i can write stand-alone program so that it run and
known Aliases on all computer.
Please help me.


Comment
Watch Question

Commented:
You have two solutions:

1. If you are putting your tables at the same directory withen your application you can use Directory name instead of Alias name such as:
Table1.DatabaseName:= ExtractFilePath(ParamStr(0));
Table1.TableName:= 'MyTable.db';
Table1.Open;

You can put that in OnCreate event, and no need for alias.

2. If you want to put your tables at different directory for example: c:\data, then write:
Table1.DatabaseName:= 'c:\data';
Table1.TableName:= 'MyTable.db';
Table1.Open;

Motaz
Commented:
Also you need to install Borland Database Engine (BDE). Once you installed BDE in client computers, you will not need to install Delphi.

Use Install Sheild Express to make a setup for your application and BDE

Motaz

Explore More ContentExplore courses, solutions, and other research materials related to this topic.