ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / External file functions
  • Miscellaneous
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Returns the full path of the directory of HFSQL data files specified by the user when installing the application.
Note This directory does not necessarily correspond to the actual directory of the data files being executed (which may have been modified by functions HSubstDir, HChangeDir, etc.).
Example
// Create a .INI file
INIDir is string
IF fDataDir() <> "" THEN
	INIDir = fDataDir() + ["\"] + "MYPROJET.INI"
ELSE
	INIDir = "MYPROJECT.INI"
END
INIWrite("SECTION", "ALREADYRUN", "YES", INIDir)
Syntax
<Result> = fDataDir()
<Result>: Character string
  • Full path ("D:\DATA\Rewali") or UNC path ("\\SERVER\DATA\Rewali") of the HFSQL data file directory.
  • Result of fExeDir if no directory was specified during the setup (in test mode and when running an executable without setup).
Remarks
WINDEVUser code (UMC)

Miscellaneous

  • If HSubstDir is used in the code of the application, the directory specified by the user during the setup will be ignored.
  • If the data files are described in the analysis with a specific directory (not recommended), this directory will not be taken into account. Only the directory specified by the user during the setup will be taken into account.
  • The fDataDir function is not equivalent to the Directory property.
Component: wd300vm.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 10/11/2025

Send a report | Local help