Re: Treeview saga continued
From: Neil (neil_at_haywood55.freeserve.co.uk)
Date: 05/18/04
- Next message: Patrick Huffer: "Requery Subform"
- Previous message: anonymous_at_discussions.microsoft.com: "Decimal problem"
- In reply to: Dale Fye: "Treeview saga continued"
- Next in thread: Luis: "Re: Treeview saga continued"
- Reply: Luis: "Re: Treeview saga continued"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 18 May 2004 14:12:35 +0000 (UTC)
Dale,
The tree view control 'node click' events pass the node bing clicked into it
as an argument. From there, you can use the .Children property of this node
to count how many children the node has. Once you know this, you can then
loop through the children by creating a temp child node, get or change
values e.t.c. and then goto the next child. .FirstSibling returns the first
child node and .Next returns the next node in line (use the .Next property
of the temp child node to get to the next child). Hope that made sense.
Unfortunatly, I dont have Access handy to give u an example and it's been a
while since I used this control.
Hope it gives you a starting point,
Neil.
"Dale Fye" <anonymous@discussions.microsoft.com> wrote in message
news:e98801c43cd5$4c54e830$a301280a@phx.gbl...
> I apparantly don't understand what a root is, because
> whenever I reference the root property of my treeview, it
> gives me a reference to node(1).
>
> I still have not figured out how to start at a given node
> (lets say on the nodechecked event) and identify all of
> the checked nodes children.
>
> If I know what the index is of a node, how can I move to
> that node (expand its parents to make sure it is visible)
> and highlight it?
>
> Also when I refer to the Parent property of a node that is
> one of the nodes that appears when all nodes are
> collapsed, Access give me an error: #91 "Object variable
> or with block not set". So how do I tell what level in
> the tree the node is at?
- Next message: Patrick Huffer: "Requery Subform"
- Previous message: anonymous_at_discussions.microsoft.com: "Decimal problem"
- In reply to: Dale Fye: "Treeview saga continued"
- Next in thread: Luis: "Re: Treeview saga continued"
- Reply: Luis: "Re: Treeview saga continued"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|