Does this command actually exist

BlitzMax Forums/BlitzMax Programming/Does this command actually exist

TartanTangerine (was Indiepath)(Posted 2005) [#1]
Method RemoveFirst:Object()

If it does would someone care to explain how I might use it. All i get are errors in compilations.

Oh, and if this does not exisit why is it in the Docs?


SillyPutty(Posted 2005) [#2]
where in the docs did you see it ? I cant find it at all, are you busy with lists ?


Dreamora(Posted 2005) [#3]
This command exist but as you see with method, this is OO only so you can't use it if you do not use TLIST and OO programming.


TartanTangerine (was Indiepath)(Posted 2005) [#4]
I'm using lists and OO.

This is the error :
---------------------------
BlitzMax Application
---------------------------
Compile Error
 Identifier 'RemoveFirst' not found
---------------------------
OK   
---------------------------


This is the some of the code

Method New ()
    If BlockTList = Null Then BlockTList = New TList
    BlockTList.AddLast Self
End Method		
		
		'----------------------------------------------------------------
		
Method Destroy ()
    RemoveFirst:Object()
End Method



Dreamora(Posted 2005) [#5]
lol
No wonder ...
should be

Method Destroy ()
   BlockTList.RemoveFirst ()
End Method


If you want to use an objects method you should call it from this object ;-)


TartanTangerine (was Indiepath)(Posted 2005) [#6]
Lol me stupid.