首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > PB >

treeview控件的取值有关问题

2012-02-08 
treeview控件的取值问题请教在treeview控件的selectionchanged函数中实现选中某个节点,将该节点及与节点相

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

热点排行