| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > FileManager > FileManager Methods >====== PostDelete(trigger delete action post-processing) ====== | [[position return the current record position .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[postinsert trigger insert action post processing .htm|{{btn_next_n.gif|Next page}}]] | | || **PostDelete( **//ErrCode, ErrMsg //**), **//returncode// {{blk2blue.jpg|blk2blue.jpg}} | **PostDelete** | Returns confirmation that valid dictionary trigger activity has occurred after delete action, and optionally sets an error code and message to be processed. | | //ErrCode// | A string constant, variable, EQUATE, or expression that represents an error code. | | //ErrMsg// | A string constant, variable, EQUATE, or expression that represents an error message. | | //returncode// | Indicates if an error occurs. | The **PostDelete **method is a virtual method that returns a TRUE value by default if post delete trigger activity was processed normally. The developer must set the return level to FALSE if any problem occurred in the post delete trigger activity code. When PostDelete returns FALSE, an ERRORCODE 100 (trigger error) is posted. If //ErrCode// is set, then FILEERRORCODE will be set to the contents of //ErrCode// when the error is processed by the ErrorClass object for the associated file (table). Similarly, FILEERROR will be set to //ErrMsg//. The PostDelete method is accessible from a table's trigger properties located in the Dictionary Editor, or, in the Global Embeds of a target application **Implementation:** PostDelete is implemented using the file driver callback mechanism, therefore, this method will have access to all variables that the File Manager has access to. These variables and the ones added in the Data section of the method will allow the developer to insert code that will be executed after a DELETE action for a file. **Return Data Type:**     BYTE **Example:** **  CODE** **!Push any pending errors on stack, to allow trigger error detection** **  PUSHERRORS()** **  ReturnValue = PARENT.****PostDelete****(ErrCode,ErrMsg) !returns TRUE by default** **  !trigger processing here ' optionally set ErrCode, ErrMsg and ReturnValue** **  POPERRORS()** **!restore errors saved on the stack** **  RETURN ReturnValue** **See Also:**     [[predelete trigger delete action pre processing .htm|PreDelete]] , [[postinsert trigger insert action post processing .htm|PostInsert]] , [[postupdate trigger update action post processing .htm|PostUpdate]]