On Mon, Nov 05, 2001, aardvarko wrote: > It seems as though it wouldn't be terribly difficult to implement - just > close the current document, save its name to a global variable or somesuch, > and set a flag 'DeleteLastDocument'. Then let the user open another document > and add a bit to the Open function checking the aforementioned flag, and, if > necessary, deleting the last document.
Not removing the document until the user opens a different document could be quite complex and definitely confusing to the user. Instead I would jump to the Document Library when the user has deleted the current document -- makes sense since the user probably wants to open a new document anyway (or exit the application). I have made a quick hack, but for some reason it sometimes fails to update the document list, i.e. the document is removed from the device, but still shows up in the document library. Have to figure out why before I can create a viewer for you to try out. /Mike
