Navigation: ABC Library Reference > SelectFileClass > SelectFileClass Methods >====== GetCancelled (get status of user dialog action) ====== | |
GetCancelled()
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