ISDBTree::CurrentNode: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
No edit summary  | 
				mNo edit summary  | 
				||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{MethodDeclaration|SDBTree|ISDBTree|Property Get/Let CurrentNode As ISDBTreeNode}}  | {{MethodDeclaration|SDBTree|ISDBTree|Property Get/Let CurrentNode As [[ISDBTreeNode]]}}  | ||
===Property description===  | ===Property description===  | ||
| Line 8: | Line 8: | ||
<  | <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  | ||
</  | </source>  | ||
Latest revision as of 23:19, 12 February 2011
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