The
Directory property is used to manage the physical directory of HFSQL files. This property takes into account the possible changes of directory performed by
HChangeDir or
HSubstDir. You can:
- Identify the physical directory of a data file defined in the data model editor or through programming.
- Define a physical directory for a data file (when the file is described through programming).
New in version 28
// Find out the name and full path of the Customer data file
NameAndFullPath is string
NameAndFullPath = Customer.Directory + "\" + ...
Customer.PhysicalName + Customer.Extension
// NameAndFullPath corresponds to "C:\MyFiles\Customer.Fic"
Syntax
Finding out the physical directory of a data file Hide the details
<Current directory> = <Data file>.Directory
<Current directory>: Character string
Name of the directory of the data file. This name takes into account the possible changes of directory performed by HChangeDir or HSubstDir.
<Data file>: Character string
Logical name of the data file used. This name was defined in the data model editor or with the File Description type.
Defining a physical directory for a data file described through programming Hide the details
<Data file>.Directory = <New directory>
<Data file>: Character string
Logical name of the data file used. This name was defined by the File Description type.
<New directory>: Character string
Physical name of the directory.