Ooops. You are correct, in that I have a typo on the function. This:
Should be:
However, when you run it, the program only prints "Point #3" when both chains have been added to the list (it should print out points 2&3). What's wrong with the loop to print it out?
Method makeChain(Point_in:TPoint,size_in:Int,Weight_in:Int) Local TempChain:TChain = New TChain tempChain.size = size_in tempChain.weight = weight_in tempChain.LinkedPoint = Point_in self.ChainList.addlast(Point_in) End Method
Should be:
Method makeChain(Point_in:TPoint,size_in:Int,Weight_in:Int) Local TempChain:TChain = New TChain tempChain.size = size_in tempChain.weight = weight_in tempChain.LinkedPoint = Point_in self.ChainList.addlast(tempChain) DebugLog "Added Chain" End Method
However, when you run it, the program only prints "Point #3" when both chains have been added to the list (it should print out points 2&3). What's wrong with the loop to print it out?