tree level

Post Reply
Natter
Posts: 1244
Joined: Mon May 14, 2007 9:49 am

tree level

Post by Natter »

Hi, all !

There is a ttreeview object of arbitrary nesting. How to find out which level is currently open ?
User avatar
Antonio Linares
Site Admin
Posts: 42605
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 46 times
Been thanked: 88 times
Contact:

Re: tree level

Post by Antonio Linares »

oTree:GetSelected() --> oItem

oItem:Cargo // place here what you may need

Please review FWH\samples\classtre.prg, fiveres.prg
regards, saludos

Antonio Linares
www.fivetechsoft.com
Natter
Posts: 1244
Joined: Mon May 14, 2007 9:49 am

Re: tree level

Post by Natter »

Thanks for your help.
Horizon
Posts: 1329
Joined: Fri May 23, 2008 1:33 pm
Has thanked: 6 times
Been thanked: 1 time

Re: tree level

Post 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
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
User avatar
nageswaragunupudi
Posts: 10729
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 10 times
Contact:

Re: tree level

Post by nageswaragunupudi »

oItem:nLevel
Regards

G. N. Rao.
Hyderabad, India
Natter
Posts: 1244
Joined: Mon May 14, 2007 9:49 am

Re: tree level

Post by Natter »

Horizon, Rao thanks !
User avatar
goosfancito
Posts: 1956
Joined: Fri Oct 07, 2005 7:08 pm

Re: tree level

Post by goosfancito »

hello

i need know how many child have an item. how i can it?
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
User avatar
Antonio Linares
Site Admin
Posts: 42605
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 46 times
Been thanked: 88 times
Contact:

Re: tree level

Post by Antonio Linares »

Gustavo,

Len( oItem:aItems )
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply