tell me why

Blitz3D Forums/Blitz3D Beginners Area/tell me why

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

This should work perfectly

type thing
  field a
end type

; create some
for i=1 to 5
  t.thing=new thing
  t\a=i
next

show()

; delete one
for t.thing=each thing
  if t\a=4 then delete t
next

show()
waitkey
end




function show()
 print "----------"
 for i.thing=each thing
   print j+" - "+i\a
   j=j+1
 next 
end function