Home | Sign in | English UK

  • Deleting a data file
  • Names of files and directories on the LINUX server
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Stored procedures
HDeleteFile (Function)
In french: HSupprimeFichier
HFSQL Client/ServerAvailable only with this kind of connection
Deletes the HFSQL data files (.fic, .ndx, .ftx and .mmo files if they exist) from the server.
Note: From version 19, HFSQL is the new name of HyperFileSQL.
// Deletes the files from the server
HDeleteFile(MyConnection, ".\backup\customerfile_bck.fic")
WEBDEV - Server codeHFSQL Client/Server
IF HDeleteFile(Ct_test, ".\Customer.FIC") = False THEN
<Result> = HDeleteFile(<Connection name> , <Physical File Path> [, <Options>])
<Result>: Boolean
  • True if the data file was deleted,
  • False if an error occurred (the data file does not exist on the server for example). HError is used to identify the error.
<Connection name>: Character string (with or without quotes)
Name of the connection in which the data file must be deleted. This connection was defined in the data model editor, or by HDescribeConnection or HOpenConnection.
<Physical File Path>: Character string (with quotes)
Name and path of the data file to delete. The path is relative to the database: the name of the database must not be specified in the path. The ".fic" extension of the data file must be specified.
<Options>: Optional Integer constant (or combination of constants)
By default, when deleting a data file:
  • the files corresponding to the logs are not deleted,
  • the files corresponding to the transactions are deleted.
This parameter is used to modify this behavior:
hKeepTRSKeeps the transaction file associated with the deleted data file.
hDestroyLinkDeletes all links related to the deleted data file.
hDeleteLogDeletes the Log file and all the logged operations associated with the deleted data file.

Deleting a data file

The data file can be deleted only if it is not currently used (which means if it is not used by a query, a view, another window, a thread or a component with independent HFSQL context).
The data file is automatically closed in the HFSQL context that calls HDeleteFile. A WLanguage error occurs if the data file is used in a context or by an application.

Names of files and directories on the LINUX server

On a LINUX server, the name of data files (.fic, .ftx, .ndx and .mmo files if they exist) must be written in lowercase and they must not contain any accented characters.
Component : wd240hf.dll
Minimum version required
  • Version 9
This page is also available for…
Click [Add] to post a comment