Getter for ItemNumber of a cTreeViewNode fails

Summary

Id: 13463.7
Type: Bug Bug
Current Status: Open

Detail

18 Nov 2003 Resolved Steve McMahon

This was a copy and paste error in the code. Attempting to get the ItemNumber actually caused the Image of the node to be set to the ItemNumber. The same problem occurred for ItemData.

19 Nov 2003 Open Brian Hicks

Getting .ItemNumber from a cTreeViewNode fails, for some reason. Set works fine.

Code snippet:

        For j = 1 To CVCameras(mServer(1).SvrHandle) 
          Set nodSubSub = subChildren.Add(, etvwChild, j, CVCameraName(mServer(1).SvrHandle, j)) 
          Set nodSubSub = subChildren.Item(j) 
          nodSubSub.ItemNumber = Rnd * 15 
          TotalAlarms = TotalAlarms + nodSubSub.ItemNumber 
        Next j 
 
        nodSub.ItemNumber = TotalAlarms