ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / Managing databases / HFSQL / HFSQL functions
  • Example 1: Advance to the 500th record in the "Product" data file according to the key Reference
  • Example 2: Advance to halfway through the "Customer" data file
HForward (Example)
Example 1: Advance to the 500th record in the "Product" data file according to the key Reference
WINDEVWEBDEV - Server codeReports and QueriesJavaUser code (UMC)AjaxHFSQL ClassicHFSQL Client/ServerHyper File 5.5OLE DBNative Connectors (Native Accesses) The following example selects the 500th record in the "Product" data file.
HFirst(Produit, Référence)
HForward(Produit, Référence, 499)
Example 2: Advance to halfway through the "Customer" data file
WINDEVWEBDEV - Server codeReports and QueriesJavaUser code (UMC)AjaxHFSQL ClassicHFSQL Client/ServerHyper File 5.5OLE DBNative Connectors (Native Accesses) This example scrolls halfway through the "Customer" data file. The total number of records is calculated by HNbRec.
// positionnement à 50% du fichier de données "Client" sur la clé "Nom"
TotalEnr is int = HNbRec(Client)
HFirst(Client, Nom)
HForward(Client, Nom, TotalEnr/2)
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help