How to know which option is selected?

Hi All,

I want to do some customization based on the user selection.

When user opens New Memo and after editing, if he closes user is prompted with the Send … Save only, Discard and cancel. I want ot know what option user has selected and based on that I want to customize and add my code. Is it possible to know what option user has selected from the Prompted message dialog.

Thanks in advance,

Agasthya