Tlist of ints?

BlitzMax Forums/BlitzMax Programming/Tlist of ints?

Curtastic(Posted 2006) [#1]
Hi, I'm wondering how this works.
It allows me to add an int to a list but doesn't seem to cycle through them with EachIn. Why is countlist=1 but it doesn't print "hello"?

Local list:TList=CreateList()
Local x:Int=55
Local o:Object

ListAddLast list,x
Print CountList(list)

For o=EachIn list
	Print "hello"
Next



Curtastic(Posted 2006) [#2]
oh nevermind I forgot to put in Strict. a bit odd that it compiled though.