PC SOFT

AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

  • Example 1: Moving to the 500th record in the Product file according to the Reference key
  • Example 2: Moving forward to the mid-point of CUSTOMER file
HForward (Example)
Example 1: Moving to the 500th record in the Product file according to the Reference key
WINDEVWEBDEV - Server codeReports and QueriesWindows MobileJavaUser code (UMC)AjaxHFSQLHFSQL Client/ServerHyper File 5.5OLE DBNative Connectors (Native Accesses) The following example selects the 500th record found in the "Product" file.
HFirst(Product, Reference)
HForward(Product, Reference, 499)
Example 2: Moving forward to the mid-point of CUSTOMER file
WINDEVWEBDEV - Server codeReports and QueriesWindows MobileJavaUser code (UMC)AjaxHFSQLHFSQL Client/ServerHyper File 5.5OLE DBNative Connectors (Native Accesses) This example moves forward to the mid-point of the Customer" file. The total number of records is calculated by HNbRec.
// point to the hald-way point of the "Customer" file using the "Name" key
TotalRec is int = HNbRec(Customer)
HFirst(Customer, Name)
HForward(Customer, Name, TotalRec/2)
Versión mínima requerida
  • Versión 9
Comentarios
Haga clic en [Agregar] para publicar un comentario