Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TreeView SelectedItem Question
Message
General information
Forum:
Visual Basic
Category:
Access
Title:
TreeView SelectedItem Question
Miscellaneous
Thread ID:
00779991
Message ID:
00779991
Views:
35
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
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Next
Reply
Map
View

Click here to load this message in the networking platform