I'm confused...
To use Lists, most examples use:
abc:TList = CreateList()
ListAddLast abc, [object]
Print CountList(abc)
But there appears to be a more elegant (imho) way of doing this:
abc:TList = New TList
abc.AddLast [object]
Print abc.Count
The TList help file doesn't appear to mention the TList's methods! What gives? Where are these methods documented? How can I find out what methods an object has?
Also, how do I erase all items in an instance of a TList object in one go? Do I simply "Release abc" (in the example above)?
[Edit]In answer to the above final question, there appears to be a .Clear method on the TList object. But where are these documented?[/Edit]
Thanks
To use Lists, most examples use:
abc:TList = CreateList()
ListAddLast abc, [object]
Print CountList(abc)
But there appears to be a more elegant (imho) way of doing this:
abc:TList = New TList
abc.AddLast [object]
Print abc.Count
The TList help file doesn't appear to mention the TList's methods! What gives? Where are these methods documented? How can I find out what methods an object has?
Also, how do I erase all items in an instance of a TList object in one go? Do I simply "Release abc" (in the example above)?
[Edit]In answer to the above final question, there appears to be a .Clear method on the TList object. But where are these documented?[/Edit]
Thanks