Difference between revisions of "ISDBTree::CurrentNode"

From MediaMonkey Wiki
Jump to navigation Jump to search
m
Line 8: Line 8:
  
  
<code>
+
<source lang="vb">
 
Function Foo
 
Function Foo
 
   If Not (SDB.MainTree.CurrentNode Is Nothing) Then
 
   If Not (SDB.MainTree.CurrentNode Is Nothing) Then
Line 14: Line 14:
 
   End If
 
   End If
 
End Function
 
End Function
</code>
+
</source>
  
  

Revision as of 19:17, 12 March 2008

CoClass SDBTree, Interface ISDBTree

Property Get/Let CurrentNode As ISDBTreeNode


Property description

Gets or sets the current tree node.

To avoid object errors during runtime, you should always verify the object is valid before using or referencing it.


Function Foo
  If Not (SDB.MainTree.CurrentNode Is Nothing) Then
  	'do whatever here
  End If
End Function