AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Administrar bases de datos / HFSQL / Funciones HFSQL
  • Example: Looping through customers by name in descending order
HReadLast (Example)
Example: Looping through customers by name in descending order
HFSQL ClassicHFSQL Client/ServerConectores Nativos The "Customer" file is looped through using the "NAME" browse key. the iteration is performed in descending order (from last to first). 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
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/05/2022

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