Home | Sign in | English EN

  • Incrementing the version number of the data file
  • Multi-file queries
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Stored procedures
Allows you to find out:
  • whether the content of a data file was modified.
  • whether the content of a data file used by a query was modified.
This function is used to detect the modifications made to a data file shared among several programs. If a modification is detected, you have the ability to refresh the data displayed in the window or in the page.
Remark: From version 19, HFSQL is the new name of HyperFileSQL.
VerNum = HVersion(Customer)
// First evaluation of the data file version
VerNum is int
VerNum = HVersion(Customer)
// Processes
// Second evaluation of the data file version
IF VerNum <> HVersion(Customer) THEN
Info("The Customer data file was modified.")
<Result> = HVersion([<Data file or query>])
<Result>: Integer
Version number of the data file.
OLE DBNative Connectors (Native Accesses) The version number is always equal to 0.
<Data file or query>: Optional character string (with or without quotes)
  • Name of data file used.
  • Name of the query used.
  • If this parameter is not specified, HVersion handles the last data file (or the last query) used.

Incrementing the version number of the data file

When creating the data file, the version number is initialized to 1. This number is incremented whenever the file content is modified (HAdd, HWrite, HModify, TableSave, TableDelete, HFree, HDelete, HCross). The number is incremented if the function is successful.
Remark: HVersion can be used on indexed or non-indexed data files.

Multi-file queries

In the case of a multi-file query, HVersion returns the sum of the HVersion of all data files used in the query.
Component: wd260hf.dll
Minimum version required
  • Version 9
This page is also available for…
Click [Add] to post a comment