How do you delete the last object in a type coll.

Blitz3D Forums/Blitz3D Beginners Area/How do you delete the last object in a type coll.

Newbie31(Posted 2014) [#1]
Hello,

How does one delete the last object in a type collection.

example: like if I want to draw 5 images than delete the 5th image only.

For a = 1 to 5
hat.typename = New typename
hat.image = imagearray[a]
hat.xpos = xposition
hat.ypos = yposition
Next

hat.typename = Last typename
;Delete?




Yasha(Posted 2014) [#2]
Delete hat


..?

In general the typelist instructions are supposed to be quite intuitive, e.g. Delete Last typename, Insert First typename Before hat, etc.


Yue(Posted 2014) [#3]
For a = 1 to 5
Images[a] = hat.typename = New typename
hat.image = imagearray[a]
hat.xpos = xposition
hat.ypos = yposition
Next

Delete Images[5]
;Delete?

Ok?