PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | French EN
This content has been translated automatically. Click here to view the French version.
  • Overview
  • Examples
  • Example 1
  • Example 2
  • Example 3
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview
Versions 16 and later
WINDEVWindows Mobile The data binding is proposed on the fields Arbre: the control can be directly linked to a data file or to a variable. See TreeView control linked to a variable or to a data file for more details.
New in version 16
WINDEVWindows Mobile The data binding is proposed on the fields Arbre: the control can be directly linked to a data file or to a variable. See TreeView control linked to a variable or to a data file for more details.
WINDEVWindows Mobile The data binding is proposed on the fields Arbre: the control can be directly linked to a data file or to a variable. See TreeView control linked to a variable or to a data file for more details.
By default, the TreeView control cannot automatically display the data coming from a data file.
Let's see some examples used to perform this operation.
This algorithm is used to fill a Treeview control from a data file:
// Browsing the data file
HReadFirst(FileName, KeyName)
WHILE HOut() = False
// Add into the TreeView control
TreeAdd (TREE_Name_NameChildTree, MaRacine + TAB + Branch + TAB + Leaf)
HReadNext(FileName, KeyName)
END
Examples

Example 1

// Browsing the data file
HReadFirst(Company, City)
WHILE HOut() = False
// Add into the TreeView control
TreeAdd (TREE_NAME_NAMEWORK, Company.City + TAB + Company.NameSoc)
HReadNext(Company, City)
END

Example 2

// Browsing the data file
HReadFirst(Customer, CustName)
WHILE HOut() = False
// Add into the TreeView control
TreeAdd(TREE_Name_Tree, Left(Client.NameCli, 1) + TAB + Client.NameCli)
HReadNext(Customer, CustName)
END

Example 3

// Browsing the data file
FOR EACH Customer ON CustName
// Add into the TreeView control
TreeAdd(TREE_Name_Tree, Left(Client.NameCli, 1) + TAB + Client.NameCli)
END
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment