Page 1 of 1
tree level
Posted: Fri Feb 23, 2018 4:39 pm
by Natter
Hi, all !
There is a ttreeview object of arbitrary nesting. How to find out which level is currently open ?
Re: tree level
Posted: Fri Feb 23, 2018 4:43 pm
by Antonio Linares
oTree:GetSelected() --> oItem
oItem:Cargo // place here what you may need
Please review FWH\samples\classtre.prg, fiveres.prg
Re: tree level
Posted: Fri Feb 23, 2018 5:09 pm
by Natter
Thanks for your help.
Re: tree level
Posted: Sat Feb 24, 2018 8:02 am
by Horizon
Natter wrote:Hi, all !
There is a ttreeview object of arbitrary nesting. How to find out which level is currently open ?
Hi,
You can use
nLevel := oItem:ItemLevel
Re: tree level
Posted: Sat Feb 24, 2018 2:12 pm
by nageswaragunupudi
oItem:nLevel
Re: tree level
Posted: Sat Feb 24, 2018 9:29 pm
by Natter
Horizon, Rao thanks !
Re: tree level
Posted: Sun Feb 07, 2021 10:47 pm
by goosfancito
hello
i need know how many child have an item. how i can it?
Re: tree level
Posted: Mon Feb 08, 2021 10:50 am
by Antonio Linares
Gustavo,
Len( oItem:aItems )