C. Generated User Classes : Edit_Object User Class : OnFileClose Method
 
Share this page                  
OnFileClose Method
The OnFileClose method checks for unsaved changes made in the edit control.
This method has the following syntax:
integer = Edit_Object.OnFileClose()
The OnFileClose method returns ER_OK if the close operation can proceed; otherwise, it returns ER_FAIL. Descriptions of system constant values and their numeric equivalents are listed in Error Codes (see Error Codes).
This method should be called for the File Close, File Exit, and the WindowClose events.