General information
Category:
Forms & Form designer
Title:
TreeView Populate from Cursor?
I hard coded this info in the init of the control:
ThisForm.oleMSTreeView.Nodes.add(,,'root','Root',1,1)
I make a cursor called 'tview' and here's a sample record
field crelative (c,12) = 'root'
field nrelation (n,4) = 4
field cindexkey (c,64) = 'branch1'
field cdesctext (c,64) = 'branch1'
In the init of the control I do:
select TView
? TView.cRelative
? 4
? TView.cIndexKey
? TView.cDescText
* Everything prints ok but...
ThisForm.oleMSTreeView.Nodes.add;
(TView.cRelative,4,TView.cIndexKey,TView.cDescText)
* does not work!
How come?
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only