User Tools

Site Tools


getcancelled_get_status_of_user_dialog_action_.htm
Navigation:  ABC Library Reference > SelectFileClass > SelectFileClass Methods >====== GetCancelled (get status of user dialog action) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

GetCancelled()

blk2blue.jpg

The GetCancelled method is used to return the status of the DialogCancelled property, which is TRUE if a user has pressed the Cancel button on the file dialog.

Implementation:

The GetCancelled method can be called after the Ask method to allow additional processing if a user has pressed the Cancel button on the file dialog. It can also be called from other areas outside of the SelectFileClass derived methods.

Return Data Type:     BYTE

Example:

CODE

 ! Start of “File Lookup Method Executable Code Section”

 ! [Priority 2500]

 ! Parent Call

 ReturnValue = PARENT.Ask(KeepDir)

 ! [Priority 5001]

  IF SELF.GetCancelled()

   MESSAGE('Using default value','Cancelled')

  END

 ! End of “File Lookup Method Executable Code Section”

 RETURN ReturnValue

getcancelled_get_status_of_user_dialog_action_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1