PDA

Click to See Complete Forum and Search --> : How can I check if a node has children or not ?


Inhumanoid
Nov 23rd, 1999, 08:50 PM
That's basicly it man:

How can I check if a node has children or not ?

Joacim Andersson
Nov 23rd, 1999, 09:54 PM
If you are reffering to a node in a treeview just check the Children property. It returns the number of child nodes.

If TreeView1.Nodes(1).Children > 0 Then
MsgBox "The node have child nodes"
Else
MsgBox "The node don't have any child nodes"
End If

Good luck!

------------------
Joacim Andersson
joacim@programmer.net
joacim@yellowblazer.com
www.YellowBlazer.com (http://www.YellowBlazer.com)

Inhumanoid
Nov 23rd, 1999, 10:06 PM
That was what I was reffering to and this is what I was looking for...

cheers