PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Example: Browsing the customers according to their name in descending order
HReadLast (Example)
Example: Browsing the customers according to their name in descending order
WINDEVJavaUser code (UMC)HFSQLHFSQL 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
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment