Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TreeView SelectedItem Question
Message
General information
Forum:
Visual Basic
Category:
Access
Miscellaneous
Thread ID:
00779991
Message ID:
00780009
Views:
14
Check if oleTreeView.Nodes.Count is greater then 0.

>I have the following code:
>
>
>Private Sub oleTreeView_Click()
>
>  DIM sSelectedItem AS String
>
>  If oleTreeView.SelectedItem.Index <> 1 Then
>
>    sSelectedItem = oleTreeView.SelectedItem.Text
>
>  End If
>
>  HideControl
>
>End Sub
>
>
>If there are no nodes in the tree I get an error. How do I test if
>the SelectedItem property contains a node?
>
>Thanks
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Reply
Map
View

Click here to load this message in the networking platform