> It's generally not a good idea in the Palm environment, to go
> deleting resources from within your event loop while memory is
> locked by the
> resource currently in use. I'm sure there's a way
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.
pseudo:
DeleteThisDoc(docname) {
lastDocument=docname;
delLastDoc=true;
}
OpenDoc(docname) {
if (delLastDoc) {deleteDoc(lastDocument);}
...
}
, but... you
> don't do this
> on the desktop, why would you do it here?
because Windows doesn't delete all files with the same creator code when you
tell it to delete one document, unlike the Palm AppLauncher ;-)
--
-aardvarko
http://aardvarko.com
webmaster at aardvarko dot com
> -----Original Message-----
> From: David A. Desrosiers [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 05, 2001 20:32
> To: Plucker Development List
> Subject: RE: I cannot delete one article