PxPlus User Forum

Main Board => Discussions => Language => Topic started by: Tim Plotner on November 10, 2020, 05:15:58 PM

Title: PRE_REMOVE IO Issue
Post by: Tim Plotner 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!
Title: Re: PRE_REMOVE IO Issue
Post by: Mike King 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.