Data file

4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next

version 11 (Modified)


Data file {(segment)} String

ParameterTypeDescription
segmentNumberObsolete, do not use
Function resultStringLong name of the data file for the database

Description

The Data file command returns the long name of the data file for the database with which you are currently working.

Starting with version 11 of 4D, data segments are no longer supported. The segment parameter is now ignored and must no longer be used.

On Windows

If, for example, you are working with the database MyCDs located at \DOCS\MyCDs on the volume G, a call to Data file returns G:\DOCS\MyCDs\MyCDs.4DD (provided that you accepted the default location and name proposed by 4D when you created the database).

On Macintosh

If, for example, you are working with the database located in the folder Documents:MyCDsƒ: on the disk Macintosh HD, a call to Data file returns Macintosh HD:Documents:MyCDsƒ:MyCDs.data (provided that you accepted the default location and name proposed by 4D when you created the database).

WARNING: If you call this command from 4D in remote mode, only the name of the data file is returned, not the long name.

See Also

Application file, DATA SEGMENT LIST, Structure file.


4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next