|
|
|
|
|
- Presentación
- Ejemplos
- Example 1
- Example 2
- Example 3
¿Cómo rellenar un control TreeView a partir de un archivo de datos? (sintaxis con prefijo)
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 populate a Treeview control from a data file:
HReadFirst(FileName, KeyName)
WHILE HOut() = False
TREE_TreeViewControlName.Add(MyRoot + TAB + Branch + TAB + Leaf)
HReadNext(FileName, KeyName)
END
Example 1
HReadFirst(Company, City)
WHILE HOut() = False
TREE_TreeViewControlName.Add(Company.City + TAB + Company.CompanyName)
HReadNext(Company, City)
END
Example 2
HReadFirst(Customer, CustName)
WHILE HOut() = False
TREE_TreeViewControlName.Add(Left(Customer.CustName, 1) + TAB + Customer.CustName)
HReadNext(Customer, CustName)
END
Example 3
FOR EACH Customer ON CustName
TREE_TreeViewControlName.Add(Left(Customer.CustName, 1) + TAB + Customer.CustName)
END
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|