AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Administrar bases de datos / HFSQL / Funciones HFSQL
  • Incrementing the version number of the data file
  • Multi-file queries
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Determines:
  • 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.
Ejemplo
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.")
END
Sintaxis
<Result> = HVersion([<Data file or query>])
<Result>: Integer
Version number of the data file.
OLE DBConectores Nativos The version number is always equal to 0.
<Data file or query>: Optional character string
  • Name of the data file used.
  • Name of the query used.
  • If this parameter is not specified, HVersion will handle the last data file (last query) used.
Java The data file used must be an HFSQL data file. Otherwise, the version number is always equal to 0.
Observaciones

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.
Note The function HVersion function can be used on both indexed and 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.
Componente: wd300hf.dll
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

Señalar un error o enviar una sugerencia | Ayuda local