ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / External file functions
  • The data directory can be specified during the setup
  • Remark
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.
Remark: This directory does not necessarily correspond to the real directory of the data files at runtime (which may have been modified with 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 (for example: "D:\DATA\Rewali") or UNC path (for example: "\\SERVER\DATA\Rewali") of the directory for the HFSQL data files.
  • Result of fExeDir if no directory was specified during the setup (in test mode and when running an executable without setup).
Remarks
WEBDEV - Server codeAjax

The data directory can be specified during the setup

  • In the setup is performed via physical media, the directory of the data files is specified during the setup.
  • For a remote setup (FTP), the Internet provider supplies the home directory for the data files and the user supplies the name of the subdirectory in which the data files are installed.
PHP

Remark

fDataDir and fExeDir return the same value.
Component: wd300vm.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/07/2024

Send a report | Local help