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: Browse the customer names in descending order
HReadLast (Example)
Example: Browse the customer names in descending order
WEBDEV - Server codeAjaxHFSQL ClassicHFSQL Client/ServerHyper File 5.5OLE DBNative Connectors (Native Accesses) The "Customer" data file is browsed according to the "NAME" path 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.
// Lecture du dernier enregistrement du fichier de données Client
HReadLast(Client, Nom)
WHILE NOT HOut()
	// Vérification si le client est un prospect
	IF EstUnClient = 0 THEN
		// Ajout de l'enregistrement dans le champ Arbre 
		TreeAdd(ARBRE_Prospect, Client.Nom)
	END
	// Lecture de l'enregistrement précédent
	HReadPrevious(Client, Nom)
END
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help