My excuse for inaction by the forum.
Thanks for the replies.
I stoped the project for job and family issues.
A small overview on target:
I want do a small utility for my PathFinder RPG Master. A Character Sheets manager.
I use ZDBC as a Java programmer
Now the problem is fixed. With ExpandFileName.
Thanks
The code is :
Code: Select all
var
driver: IZDriver;
url: string;
const
databaseName = '..\..\data\pathfinder.sqlite.s3db';
begin
inherited Create(AOwner);
url := 'zdbc:sqlite-3:///' + ExtractFilePath(Application.ExeName)+(databaseName);
DriverManager.AddLoggingListener(Self);
driver := DriverManager.GetDriver(url);
FConnessione := nil;
if assigned(driver) then
begin
FConnessione := driver.Connect(url, nil);
if not assigned(FConnessione) then
begin
raise Exception.Create('Database connection error!');
end
else
begin
FConnessione.SetAutoCommit(False);
end;
end
else
raise Exception.Create('Driver SQL not found!');
FCollezioneRazza := TCollezioneRazza.Create;
FCollezioneDivinita := TCollezioneDivinita.Create;
FAllineamenti := TStringList.Create;
LoadAllineamento;
LoadDivinita;
LoadRazze;
LoadClassi;
FConnessione.Close;
end;