hello,
I have the following code and in the red line i recieve this message.
das objekt mit null wert muss einen wert haben
how to fix it?
Code:
If Flag2 = True Then
Root.Expand()
For i = 0 To RootNodes.Count - 1
RootNodes.Item(i).Expand()
Dim RootItemsfori = Root.Nodes.Item(i).Nodes
For j = 0 To RootItemsfori.Count - 1
RootItemsfori.Item(j).Expand()
Dim RootItemsforj = Root.Nodes.Item(i).Nodes.Item(j).Nodes
For k = 0 To RootItemsforj.Count - 1
RootItemsforj.Item(k).Expand()
Dim RootItemsforw = Root.Nodes.Item(i).Nodes.Item(j).Nodes.Item(k).Nodes
For w = 0 To RootItemsforw.Count - 1
Dim cNI = TryCast(RootItemsforw.Item(w).Tag, RiskeySIITreeBuilder.NodeInfo)
If Not cNI.Key.UnterStArt.Value.ToString() Is Nothing Then
RootItemsforw.Item(w).Expand()
Else
Exit Sub
End If
Next
Next
Next
Next