PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

WinDevWebDev - Server codeWebDev - Browser codeWinDev MobileReports and QueriesWindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPadJavaPHPAjaxUser code (UMC)External languageHFSQLHFSQL Client/ServerStored proceduresHyper File 5.5OLE DBODBCNative Accesses

HFree (Function)
In French: HLibère

Transforms the crossed records (HCross) found in a data file into deleted records. The space occupied by the crossed records is freed and it can be re-used during the next additions (HAdd).

Reminder: A crossed record is inactive and it disappears from the index. The data found in this crossed record is not deleted (unlike HDelete).

Note: From version 19, HFSQL is the new name of HyperFileSQL.
Example
// Deletes all the crossed records from "Customer" file
HFree(Customer)

Syntax
<Result> = HFree([<File Name>])
<Result>: Boolean
  • True if the record was deleted,
  • False if a problem occurred: the record is not deleted. HError is used to identify the error.
<File Name>: Optional character string (with or without quotes)
Name of the data file used. If this name is not specified, HFree handles the last data file used by the last function for HFSQL management (starting with the letter H).

Remarks
This function is not suitable for the xBase files.

Components
Reports and Queries wd190hf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment