Re: Nesting Question?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hello,

I inserted the code below and no matter what TV,
deep in a nest or not has always returned 41) as the
parent_id

This is how i tried the code:

    index = getTVIndex( TV ) -- this is the current (selected) TV
    parent = getParent( index ) -- this should have been the parent of index

am I right? Instead 41 kept comeing up. So, I experimented some and found
that

 global function getParent( integer id )
           return tvitem_parent[ id ]
 end function

does work...... Thanks Matt for putting me in the right direction.

> >From: Wayne Overman

> >How can I return the TV (treeview) [ ID's ] of the Parent and Grand
Parent of a child ?

> From Matt Lewis

> This is another thing that hasn't really been wrapped, but by adding:

> global function getParent( integer id )
>         return tvitem_owner[ id ]
> end function

> to win32lib, you can get the id of a parent.  If the return is zero, then
the item has no parent.

> Matt Lewis

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu