IBCConnection1.Database := '.\DATA\TEST.FDB';
IBCConnection1.Connected := True;
Error occurr!
I/O error for file ".\DATA\TEST.FDB"
Error while trying to open file
But this statement is no error.
IBCConnection1.Database := 'C:\Program files\DATA\TEST.FDB';
IBCConnection1.Connected := True;
I want below statement.
IBCConnection1.Database := '.\DATA\TEST.FDB';
Impossible?
If so, please support.
About Database path establish set.
Please specify your application path. To do this place button on the main application form and fill OnClick event with the following code:
Also send us small sample project that demonstrates your problem.
Code: Select all
ShowMessage(ExtractFileDir(Application.ExeName));
This problem can be caused by accessing database through network protocol. You should know that you can use relative database path only with local database connection. If you set IBCConnection.Server to any value (even localhost) then IBCConnection.Database must be full path to database file.
If your problem persists then please send us small demo project to IBDAC support address.
If your problem persists then please send us small demo project to IBDAC support address.