FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour tree level
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
tree level
Posted: Fri Feb 23, 2018 04:39 PM

Hi, all !

There is a ttreeview object of arbitrary nesting. How to find out which level is currently open ?

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: tree level
Posted: Fri Feb 23, 2018 04:43 PM

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
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: tree level
Posted: Fri Feb 23, 2018 05:09 PM

Thanks for your help.

Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: tree level
Posted: Sat Feb 24, 2018 08:02 AM
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.06
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: tree level
Posted: Sat Feb 24, 2018 02:12 PM

oItem:nLevel

Regards



G. N. Rao.

Hyderabad, India
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: tree level
Posted: Sat Feb 24, 2018 09:29 PM

Horizon, Rao thanks !

Posts: 1956
Joined: Fri Oct 07, 2005 07:08 PM
Re: tree level
Posted: Sun Feb 07, 2021 10:47 PM

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/
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: tree level
Posted: Mon Feb 08, 2021 10:50 AM

Gustavo,

Len( oItem:aItems )

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion