` Printed Icetips Article

Icetips Article



Par2: Acting after a delete is confirmed
1999-03-08 -- Jim Katz
 
I would use the Browser Method, ResetFromAsk before the parent call.

IF Request = DeleteRecord And Response = RequestCompleted
  Do MyStuff
End

Geoff Bomford notes:

I suspect that might be too late  the record has already been deleted by
then, so perhaps the record buffer has been cleared?  It would be worth
checking?

I would try the ThisWindow.Run PROCEDURE(USHORT Number,BYTE Request) embed,
priority 6000, in the browse procedure - with a conditional...

IF Request = DeleteRecord
  AddaBackupRecord
END

Then in the embed you suggested I would add...

IF Request = DeleteRecord And Response <> RequestCompleted
  DeleteBackupRecord   ! Didn't delete original record
End



Printed May 11, 2024, 3:57 pm
This article has been viewed/printed 35117 times.