"Soske" <(E-Mail Removed)> schrieb:
> I'm creating binary tree and i have my own structure with
> variables parent, leftchild, rightchild:
>
> Public Structure Node
> Public Parent As Object
> Public LeftChild As Object
> Public RightChild As Object
> .
> .
> .
> End Structure
>
> I need to hold only references to objects in teese variables.
Notice that structures are value types.
Use something like this instead:
\\\
Public Class Node
Public Parent As Node
Public LeftChild As Node
Public RightChild As Node
End Class
///
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet