Close/Close All w/PageControl

I am using a PageControl to let a user
click on a file from a listbox and have
that file open in a TMemo on a new
Tabsheet.  My problem is how to close
the file (checking if modified = true) and
closing all files.  Does an example exist
anywhere?  TIA :)

Ronald S. Maston
rmas...@webstar.net