tree level

Post Reply
Natter
Posts: 524
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: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
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: 524
Joined: Mon May 14, 2007 9:49 am

Re: tree level

Post by Natter »

Thanks for your help.
Horizon
Posts: 997
Joined: Fri May 23, 2008 1:33 pm

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 & VS 2019 & FWH 20.12
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: tree level

Post by nageswaragunupudi »

oItem:nLevel
Regards

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

Re: tree level

Post by Natter »

Horizon, Rao thanks !
User avatar
goosfancito
Posts: 1392
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?
Un aporte chico hace grandes cambios.
Apoyemos al proyecto "Hogar pimpinela"
Bajate la aplicación (gratuita) y encuentra en ella toda la info de como podes colaborar.
GRACIAS!
https://play.google.com/store/apps/deta ... .acomprar
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: tree level

Post by Antonio Linares »

Gustavo,

Len( oItem:aItems )
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply