Results 1 to 3 of 3

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

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 1999
    Posts
    309

    Post

    That's basicly it man:

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

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Post

    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
    [email protected]
    [email protected]
    www.YellowBlazer.com



  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 1999
    Posts
    309

    Post

    That was what I was reffering to and this is what I was looking for...

    cheers

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width