Nadya,
How about mimicking VFP behavior. That is, mark the files in the grid (maybe with a checkbox) for deletion. When the user finally makes up their mind to accept the changes they made (I'm assuming that must happen at some point!) issue the TABLEUPDATE() and based on the return value, delete the marked files. This way, you don't have to worry about undeleting, trashcans, or recycle bins.
---J
>Hi everybody,
>
>I have FileAdmin application. It basically logs files used in the system, allows to archive/unarchive them, delete them, etc.
>The main form has a grid and a standard navigation bar. If user presses delete button, selected records are deleted, some info in the record is updated and files get deleted too. However, form uses 5 buffering, which means, that user may regret his/her action and press a revert button. The records become undeleted, but the files are already gone.
>
>So, my question is: what would you suggest me to do? How can I find out, if record was deleted and then reverted back? How can I undelete the file?
>
>Thanks in advance.