if i want to remove an object from a list and free it from memory do i do this?
also, is there a command to remove all objects from a list AND free their memory?Code:myobj=obby.create; mylist.add(myobj); for i:=0 to mylist.count-1 do begin if mylist[i].name='trev' begin mylist.delete(i); //removes object from list mylist[i].free;//frees from memory exit; end; end;
Bookmarks