Answer the question
In order to leave comments, you need to log in
How to get rid of absolute paths?
Hello dear.
I am writing a program - a test for knowledge of "Something there".
And now I store the files from which I take the full answer to the question, in the .txt format . I specify
the absolute path to them.
But how to find the desired file without using an absolute path?
Answer the question
In order to leave comments, you need to log in
// Создаем свойство в форме
private
AppPath: string;
// при создании вычисляем его
procedure TfmMain.FormCreate(Sender: TObject);
begin
AppPath := ExtractFilePath(Application.ExeName);
//…
// потом используем
DBName := AppPath + '\' + 'base.sqlite';
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question