PC SOFT

AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

  • Example: Browsing the customers according to their name in descending order
HReadLast (Example)
Example: Browsing the customers according to their name in descending order
WINDEVWEBDEV - Server codeReports and QueriesWindows MobileJavaUser code (UMC)AjaxHFSQLHFSQL Client/ServerHyper File 5.5OLE DBNative Connectors (Native Accesses) The "Customer" file is browsed according to the search key "NAME". the browse is performed in descending order (from the last one to the first one). If the customer is a prospect (IsCustomer = 0), it is added to the TREE_PROSPECT treeview.
// Read the last record found in Customer file
HReadLast(Customer, Name)
WHILE NOT HOut()
// Check whether the customer is a prospect
IF IsCustomer = 0 THEN
// Add the record into the TreeView control
TreeAdd(TREE_PROSPECT, Customer.Name)
END
// Read the previous record
HReadPrevious(Customer, Name)
END
Versión mínima requerida
  • Versión 9
Comentarios
Haga clic en [Agregar] para publicar un comentario