` Printed Icetips Article

Icetips Article



ABC: Overriding Delete method to mark record deleted instead of physically deleting it
2001-05-11 -- Dennis E. Evans
 
Newsgroups: softvelocity.products.c55ee

Hi all,

> So I think I have to modify  the method that does the actual 
> deleting. But what is that method and how to change it?

Derive the FileManager and overload the DeleteRecord method.  According
to the docs the method was included for this specific purpose.

All it does now is

  delete(file)
  return Level:Benign

  in the derived class you would use

  field = value        ! set your flag
  put(file)
  return level:Benign


Dennis



Printed May 7, 2024, 7:12 am
This article has been viewed/printed 35315 times.
Google search has resulted in 40 hits on this article since January 25, 2004.