TParamsFile.setFilePath Method
Definition
Change the file path (folder + filename) of the parameter file.
Delphi
procedure setFilePath(AFilePath: string; AReload: boolean = True; AExceptionIfFolderNotExist: boolean = True)
Parameters
- AFilePath
- string
Absolute file path (drive+folder+file name+extension) to the parameter file you want to use.
- AReload
- Boolean
If set to True (by default), call Load procedure after changing the file path.
- AExceptionIfFolderNotExist
- Boolean
Check if the folder of the new path exists. If not, an exception is raized. On iOS and Android, if an exception is sent before the GUI has started, it will crash the app.
Remarks
If you only want to change the path to the parameter file, use setFolderName procedure instead of this one.