Question : Specify a Path

Hi,

I need to specify a path, the path should be in the folder Data in my own application folder.
What do I do wrong?

  DataPath := '..\Data\'; <===================
  dbUTF.Params.Add('PATH=' + DataPath);

Peter Kiers

Answer : Specify a Path

you are looking for a relative path to the current directory

DataPath := ExtractFilePath(ParamStr(0)) + '\DATA\';

this will take directory from exe and add \data\
Random Solutions  
 
programming4us programming4us