I get how to make and use them in general, but was wondering is ther a best way to use Tlists.
At the moment i generally make them global eg
Global explo:TList=New TList
and then access them in the main program is this the preffered method or does it have any benefits all fall downs as compared with say have a Tlist inside the type attached as one of the fields inside the type eg.
Type Tstreak
Field PointList:TList
field all the other fields etc
funtions etc
methods etc
end type
i am guessing this way that say if i cal an update(0 from within this type there is no external or main code chunk with the loop going through the list like the first eg where the list is global.......
is this a six of one, half dozen of the other is there gunuine benefits from one....any ideas?
ta
At the moment i generally make them global eg
Global explo:TList=New TList
and then access them in the main program is this the preffered method or does it have any benefits all fall downs as compared with say have a Tlist inside the type attached as one of the fields inside the type eg.
Type Tstreak
Field PointList:TList
field all the other fields etc
funtions etc
methods etc
end type
i am guessing this way that say if i cal an update(0 from within this type there is no external or main code chunk with the loop going through the list like the first eg where the list is global.......
is this a six of one, half dozen of the other is there gunuine benefits from one....any ideas?
ta