View Issue Details

IDProjectCategoryView StatusLast Update
0001993JEDI VCL00 JVCL Componentspublic2004-10-22 14:13
ReportercpallAssigned Touser72 
PrioritynormalSeveritytrivialReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version3.00 RC 1 
Summary0001993: jvXMLDatabase Example Broken (Solution Included)
DescriptionExample for jvXMLDatabase is broken. The data path points to the application exe directory and expects to find it's data as a sub-directory. The output path for all projects looks is supposed to be the bin directory, so I propose the following solution: Make the working directory (a setting in the project options) -- set that to "."

Then, change line 63 in ClassHospital to

FDatabase.TablesPath := GetCurrentDir + '\..\Data\';

Instead of referring to the exename.

Then the example will be able to find it's data.
TagsNo tags attached.

Activities

cpall

2004-07-22 21:22

reporter   ~0004809

There is also a reference in ClassHospital.pas a couple lines down in GetDataPath but the code isn't being used and probably could be tossed altogether. However, more importantly, I did leave out that there is also a reference to Application.ExeName in ClassRequest.pas, line 61, which should look like:

  st := GetCurrentDir + '\..\Documents\' + st;

This makes the example work. It is a nice example.

user72

2004-09-25 03:29

  ~0005263

Actually, it is a lot better to change the bin output folder to "..\"

Issue History

Date Modified Username Field Change
2004-07-22 21:03 cpall New Issue
2004-07-22 21:22 cpall Note Added: 0004809
2004-09-25 03:29 user72 Note Added: 0005263
2004-10-22 14:13 user72 Status new => resolved
2004-10-22 14:13 user72 Resolution open => fixed
2004-10-22 14:13 user72 Assigned To => user72