Int in TList
BlitzMax Forums/BlitzMax Beginners Area/Int in TList Use explicit Typecasting
print string( List.ValueAtIndex(1) )
or for int
print int( List.ValueAtIndex(1) )
List always returns a baseobject you have to cast to the specific type.
print string( List.ValueAtIndex(1) )
or for int
print int( List.ValueAtIndex(1) )
List always returns a baseobject you have to cast to the specific type.
hmm checked the source of it.
Actually the question is if it really returns the object within.
It does "eachin self" ... and TList only consists of TLink ... so theoretically it should return a TLink.
have you tried
print int( List.ValueAtIndex(1).Value )
don't know if this works ... perhaps I don't understund what the function actually does ... in this case I'm sorry
Actually the question is if it really returns the object within.
It does "eachin self" ... and TList only consists of TLink ... so theoretically it should return a TLink.
have you tried
print int( List.ValueAtIndex(1).Value )
don't know if this works ... perhaps I don't understund what the function actually does ... in this case I'm sorry