当前位置: 代码迷 >> PB >> treeview控件的取值有关问题
  详细解决方案

treeview控件的取值有关问题

热度:168   发布时间:2016-04-29 10:29:21.0
treeview控件的取值问题
请教在treeview控件的selectionchanged函数中实现选中某个节点,将该节点及与节点相关的所有父节点的data值取出的方法!

------解决方案--------------------
取得当前选中节点的父节点的label值,供参考,取data值应该类似

integer ll_tvi 
string ls_label ,
treeviewitem tvi_parent 
ll_tvi=FindItem(CurrentTreeItem!,0)
ll_tvi=FindItem(ParentTreeItem!,ll_tvi)
this.GetItem(ll_tvi,tvi_parent)
ls_label = tvi_parent.label
  相关解决方案