Delete function

Official Content
This documentation is valid for:

To return True when the Transaction object is in Delete mode. Otherwise, it will return False.



Type Returned:
Boolean (True or False)


In the iSeries environment, when an error rule for a certain mode is defined (as in the example above, for Delete mode) the corresponding code to support this mode is not generated.


A common use of this function is to include an error() rule denying access to a certain mode within Transactions:

Error('Orders may not be deleted') If Delete;

This rule prevents the user from accessing the delete mode and thereby eliminating Orders.


Objects   Transaction object

See also

Update function
Insert function