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.
| ||
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? |
| ||
Delete hat ..? In general the typelist instructions are supposed to be quite intuitive, e.g. Delete Last typename, Insert First typename Before hat, etc. |
| ||
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? |