PxPlus User Forum

Twitter Twitter Twitter

Author Topic: PRE_REMOVE IO Issue  (Read 1003 times)

Tim Plotner

  • New Member
  • *
  • Posts: 1
    • View Profile
PRE_REMOVE IO Issue
« on: November 10, 2020, 05:15:58 PM »
I am trying to intercept a REMOVE and prevent it under certain circumstance.
I have an IO proc defined.  I hit the PRE_REMOVE: block.
I decide that I want to disallow the REMOVE.
I have tried: EXIT 0, EXIT 61, ESCAPE 61, and several other values.

In each case, I get an error generated.  And end up aborting the process.  When I go back in, the record was in fact removed.

Any ideas on how to deal with this?  I am on PxPlus 15.1.

Thanks!

Mike King

  • Diamond Member
  • *****
  • Posts: 3811
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: PRE_REMOVE IO Issue
« Reply #1 on: November 10, 2020, 06:14:47 PM »
You might try a RETURN 1 to indicate that the remove was successful but that will by-pass the actual remove.

Generating an error is likely going to be problematic.
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com